1
votes

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.

1

1 Answers

0
votes

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.