Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Sample not working as documented #85855

Closed
trevonmckay opened this issue Dec 31, 2021 · 3 comments
Closed

C# Sample not working as documented #85855

trevonmckay opened this issue Dec 31, 2021 · 3 comments

Comments

@trevonmckay
Copy link

The provided C# sample results in the following AAD error "AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '55747057-9b5d-4bd4-b387-abf52a8bd489'."
image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ssivas
Copy link
Contributor

ssivas commented Dec 31, 2021

@trevonmckay, Thank you for your feedback . We will investigate and update the thread.

@ssivas
Copy link
Contributor

ssivas commented Dec 31, 2021

@trevonmckay, Could you enable verbose and decode your code to verify if following ReplyAddressValue "https://login.microsoftonline.com/common/oauth2/nativeclient" being generated by PublicClientApplicationBuilder.WithDefaultRedirectUri Method? because this must be value used as redirect_uri during authentication.

image

Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.identity.client.publicclientapplicationbuilder.withdefaultredirecturi?view=azure-dotnet
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Default-Reply-Uri

@ssivas
Copy link
Contributor

ssivas commented Jan 7, 2022

We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

#Please-close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants