question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission browser callback issue

See original GitHub issue

When the application tries to obtain it’s access token, it opens the default web browser. On my machine http://localhost:80 pointed towards an IIS server and intercepted the callback with the token.

Now it seems like this browser opening thing is part of SpotifyAuthServer which seems sealed.

I think it’s a better way to open a WebBrowser component with a NavigatedEventHandler to catch certain url schemes with the access token.

I’ve used this before with the Azure API

WebBrowser.Navigated += NavigatedEventHandler;

...

private void NavigatedEventHandler(object sender, NavigationEventArgs e)
        {
            if (e.Uri.Scheme == CallbackUri.Scheme)
            {
                var parsedQuery = HttpUtility.ParseQueryString(e.Uri.Query);
                var token = parsedQuery.Get("spotify_token");
                // Make callback and save correct tokens
                Close();
            }
        }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
braveadmincommented, Dec 4, 2018

I easily solved this problem as you said before, changing the Redirect URI. I choosed port 8081 On spotify: image

on audioband settings: image

Now it works perfect!

1reaction
dsafacommented, Nov 22, 2018

The latest version 0.7.2 has an option to change the port

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome Extensions Optional Permissions wont evaluate ...
Unfortunately you can't call chrome.permissions.request in the chrome.permissions.contains callback function because it isn't in the correct ...
Read more >
Oauth2 Postman browser Callback URL is not working as ...
This call back URL was working fine until Dec 22nd. We started to observe this error message recently “Could not make access token...
Read more >
Extension: chrome.permissions.request does not prompt ...
Issue 368668: Extension: chrome.permissions.request does not prompt user, it just passes false to callback function.
Read more >
"Authorize using browser" fails to complete authentication
Go to 'Authorization'; Click on 'Get New Access Token'; Check 'Authorize using browser`; Click 'Request Token'; (Postman will redirect to Auth0 ...
Read more >
Android sign on started to fail with CANNOT GET callback ...
Started about a week ago, when signing in on Android devices, majority of users are getting “CANNOT GET /android/{applicationId}/callback/” ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found