Permission browser callback issue
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I easily solved this problem as you said before, changing the Redirect URI. I choosed port 8081 On spotify:
on audioband settings:
Now it works perfect!
The latest version
0.7.2
has an option to change the port