microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.22k stars 343 forks source link

Test-HMAEAS.ps1 can't get token #1550

Open ohadk84 opened 1 year ago

ohadk84 commented 1 year ago

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 '27922004-5251-4030-b22d-91ecd9a37ea4'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

dpaulson45 commented 1 year ago

Did you follow the information in the link? It looks like this calls out what you need to do to fix your issue.

ohadk84 commented 1 year ago

we're talking about the Outlook Mobile app, It's not accessible to customers. The script code needs to be changed so the redirection URI matches the app configured URI.

dpaulson45 commented 1 year ago

The script is to TEST your configuration to make sure it is configured correctly. It is providing that it isn't configured correctly based on that output and that Outlook Mobile app isn't accessible.

ohadk84 commented 1 year ago

I actually tested it also against a working mailbox who got this result. Outlook Mobile app isnt available on the enterprise application list in Azure AD so no changes can be made from my side.

dpaulson45 commented 10 months ago

@tweekerz you able to look into this?