question

60134842 avatar image
0 Votes"
60134842 asked ShwetaMathur answered

oauth 2.0 authorization

I am following the guidance
https://docs.microsoft.com/zh-cn/graph/auth-v2-user
to build an application on azure portal and want to login by oauth2.0
When I give call the api below

https://login.microsoftonline.com/1cbf21dd-dd16-497b-9ce7-463a197d3f05/oauth2/v2.0/authorize?
client_id=0e1f447e-e88b-454c-9eab-05464f01de21
&response_type=code
&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
&response_mode=query
&scope=offline_access%20user.read%20mail.read%20Directory.ReadWrite.All%20Group.ReadWrite.All%20ChannelMessage.Read.All
&state=12345
It always shows AADSTS500113: No reply address is registered for the application.
Did I miss some setups on the azure application configuration ?

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShwetaMathur avatar image
0 Votes"
ShwetaMathur answered

Hi @60134842,
Thanks for reaching out.

I understand you are trying to call authorization grant code flow to get the access token and getting error "AADSTS500113: No reply address is registered for the application".

The error is due to redirect URI is not available, you need to add the valid URI in your application registration.

201563-image.png

Please note that the redirect URI parameter passed in authorize endpoint needs to be same as the redirect URI configured in the application registration.

Hope this will help.

Thanks,
Shweta


Please remember to "Accept Answer" if answer helped you.



image.png (76.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.