Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid redirect URI on spotify auth

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?

like image 797
realdark Avatar asked Oct 05 '15 19:10

realdark


People also ask

What should be the redirect URI in Spotify?

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 .

What is invalid redirect URI?

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.

What is redirect URI in Keycloak?

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.

What is a redirect URL API?

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.


1 Answers

You have to add the redirect URI to the White-list in "My Applications" panel.

e.g http://example.com/callback/

like image 67
mallendeo Avatar answered Sep 25 '22 07:09

mallendeo