Closed YHgitaccount closed 9 months ago
@YHgitaccount :
@jmprieur
Thanks for your response.
Regarding 1, In the "Update the redirect URLs" section of the reference link you commented on, there is the following statement: 5.
Also, follow the "Update the redirect URLs" section of the same link,
Add "https://
I registered the following two
However, the situation did not change, so I checked the stack and races in developer mode and received the following error
Where else would be appropriate to check? We would appreciate your comments as we are very troubled.
Translated with www.DeepL.com/Translator (free version)
Here, I solved the problem by changing the root path in the application settings.
Microsoft.Identity.Web version
2.13.0
Web app sign-in
1-WebApp-OIDC/1-1-MyOrg
Web API (call Graph or downstream APIs)
2-WebApp-graph-user/2-1-Call-MSGraph
Deploy to Azure
5-WebApp-AuthZ/5-1-Roles
Auth Z
6-Deploy-to-Azure
Description
I am using the 2-1-CallMSGraph sample, but I am getting errors about redirects. As a prerequisite, local sign-in worked fine. This time, we are planning to configure the app to redirect and access https:.azurewebsites.net/xxx/signin-oidc to sign in and get Azure AD information.
Therefore, we have made the following changes to the AzureAd property in the appsetting.json file.
Also, for Azure app authentication settings, as a redirect URI, https:.azurewebsites.net/xxx/signin-oidc is registered.
Assuming the above, we deployed to Azure Web Apps. However, when I access the app, I get the following error Error AADSTS50011 - The redirect URI "https:.azurewebsites.net/signin-oidc" specified in the request does not match the redirect URIs Make sure the redirect URI was sent.
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.
Despite changing the redirect URI setting, the URI does not seem to match, as it is coming from https:.azurewebsites.net/signin-oidc.
https://learn.microsoft.com/ja-jp/troubleshoot/azure/active-directory/error-code-aadsts50011-redirect-uri-mismatch I referred to the above and it says to set the redirect URI in Azure App Authentication, but I don't know why as I have already registered it.
Where in the source code or in the configuration file should I change the URI to https:.azurewebsites.net/xxx/signin-oidc instead of https:.azurewebsites.net/signin-oidc? in the source code or in the configuration file?
Translated with www.DeepL.com/Translator (free version)
Reproduction steps
Error message
Error AADSTS50011 - The redirect URI "https:.azurewebsites.net/signin-oidc" specified in the request does not match the redirect URIs configured for the application .
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.
Id Web logs
No response
Relevant code snippets
Regression
No response
Expected behavior
The ability to sign in without error when accessing https:.azurewebsites.net/xxx/signin-oidc.