oauth 2.0 authorization

耀駿 施 71 Reputation points
2022-05-12T12:15:50.053+00:00

I am following the guidance
https://learn.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 ?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 27,141 Reputation points Microsoft Employee
    2022-05-12T17:43:04.063+00:00

    Hi @耀駿 施 ,
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful