简体   繁体   中英

How to configure Azure AAD in API Management and call API Management endpoints from web/console app in .NET

I have gone through few articles like below

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad

but It didnt worked.

I'm getting error as AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '24gktm5-5khpnj3h9nphkmm=h-hh2h58h9' .

I have followed everything as mentioned but not getting where I did wrong.

Also can someone share code to call APIM endpoints from console app.

The redirect URIs for your AD app (Application ID : 24gktm5-5khpnj3h9nphkmm=h-hh2h58h9) needs to include the URI from the OAuth configuration under APIM.

From the OAuth settings of APIM, under where you enter the client secret you should see "This is what the redirect_uri for authorization code grant type looks like", copy this URL into the redirect URIs for your AD app registration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM