microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.33k stars 653 forks source link

AADSTS50013: No reply address is registered for the application. #272

Open jcousineaugd opened 3 months ago

jcousineaugd commented 3 months ago

We are getting the error "AADSTS50013: No reply address is registered for the application." and are not sure what we may have missed.

image

We followed the documentation located here to set up our App Registration. It is obviously missing some steps and/or does not fully explain how this new App Registration needs to be configured.

I tried adding multiple redirect URIs as shown below:

image

But then we just get this error: "AADSTS50011: The redirect URI 'urn:ietf:wg:oauth:2.0:oob' specified in the request does not match the redirect URIs configured for the application '9a6e3dee-a1e4-4d6a-9e51-74b178f29d12'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal." image

image

Any help would be greatly appreciated, thank you!

Originally posted by @jcousineaugd in https://github.com/microsoftgraph/powershell-intune-samples/issues/268#issuecomment-2123559885

carlitog commented 3 months ago

Add urn:ietf:wg:oauth:2.0:oob as the Redirect URI for "Mobile and desktop applications"

jcousineaugd commented 3 months ago

That fixed it, thank you. I would suggest adding a configure redirect URI step to the example documentation: https://github.com/microsoftgraph/powershell-intune-samples/blob/master/Updating%20App%20Registration