I try to auth user through my app with spotify Web API but I receive this error:
INVALID_CLIENT: Invalid redirect URI
URL:
GET https://accounts.spotify.com/authorize/?client_id=6ae90bf75bf748c8874a75d16682f0c5&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=user-read-private%20user-read-email
I cant see where is the problem... Can you help?
Redirect URI¶ The redirect URI can be any valid URI (it does not need to be accessible) such as http://example.com , http://localhost or http://127.0.0.1:9090 .
Invalid Redirect URI While working on a web based client, you have to ensure that the redirect URI passed while authentication, is the same as the one given during registration. If the redirect uri is not the one given during registration, an invalid redirect uri error will be thrown.
By default, keycloak is configured to use * as the redirect URL in VMware Telco Cloud Operations. For authorization code flows, when redirect URIs are registered that are too general, it would be possible for a rogue client to impersonate a different client that has a broader scope of access.
A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.
You have to add the redirect URI to the White-list in "My Applications" panel.
e.g http://example.com/callback/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With