spotify / web-api-examples

Basic examples to authenticate and fetch data using the Spotify Web API
Apache License 2.0
1.99k stars 1.67k forks source link

Localhost based redirect-uri doesn't work with Implicit Grant Flow #72

Open dylanesque opened 3 years ago

dylanesque commented 3 years ago

Using a localhost-based redirect_uri doesn't work with implicit grant flow login. Please make this explicit in the Authorization Guide so users can find this out without trial and error.

tobika commented 3 years ago

Hi @dylanesque I just tested the example of implicit auth flow and it works with localhost. First I also had an invalid redirect_uri because the whitelisted one had a backslash at the end that I forgot to add in my code.

dylanesque commented 3 years ago

Hi @dylanesque I just tested the example of implicit auth flow and it works with localhost. First I also had an invalid redirect_uri because the whitelisted one had a backslash at the end that I forgot to add in my code.

Yeah, that wasn't the case for me, I was 100% certain the redirect_uri matches the one i have whitelisted in the app dashboard was correct since it's working with the authorization flow.

joshuarlowry commented 3 years ago

Can you describe your setup? Servers, containers, etc.

On Wed, Apr 21, 2021, 1:09 PM Michael Caveney @.***> wrote:

Hi @dylanesque https://github.com/dylanesque I just tested the example of implicit auth flow and it works with localhost. First I also had an invalid redirect_uri because the whitelisted one had a backslash at the end that I forgot to add in my code.

Yeah, that wasn't the case for me, I was 100% certain the redirect_uri matches the one i have whitelisted in the app dashboard was correct since it's working with the authorization flow.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spotify/web-api-auth-examples/issues/72#issuecomment-824256781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASYOCHTMUIURROEMQQY3H3TJ4IETANCNFSM43JFFAXA .