Hello Everyone,
Im trying to get the authorization code in order to get authentication code.Im using this url:
https://eu.battle.net/oauth/authorize?client_id=myclientid&redirect_uri=https://dev.battle.net&response_type=code&scope=openid,wow.profile
and Im getting this error message as a response: Invalid grant type or callback URL is not valid.
Can someone help me with what am i doing wrong here?
Thanks in advance!
Your redirect URI is pointing to https://dev.battle.net. If you are creating your own application it should point to your app’s URL, even if it is a local one like 127.0.0.1:3000/auth/callback or something.
The correct URI depends on your app and the OAuth2 implementation you are using.
Also note it must be registered under yout client_credentials allowed redirect URIs.
Thanks Shiller,
You reddirected me into the right direction, I have managed to solve the problem.