Signing client's userbase into Azure App Service using client's Outlook OpenID Connect.
Hello,
I am having difficulty setting up sign ins through my client's Outlook to my app.
I want to make sure I am understanding the process corretly.
Process:
- App Registration - Redirect URI: myapp.azurewebsites.net
- Identity Provider Connect - Using OpenID Metadata, App Client Id and Secret from (1)
- App Registration - Redirect URI: https://<YOUR_SITE>/.auth/login/aadb2c/callback
- Authentication on Web App - Metadata URL: https://<TENANT_NAME>.b2clogin.com/<TENANT_NAME>.onmicrosoft.com/<POLICY_NAME>/v2.0/.well-known/openid-configuration
Client ID and Secret from (3)
The docs seem to be somewhat dispersed, and this is what I could gather.
https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications
However, doing this has been unsuccessful, with errors such as (https://learn.microsoft.com/en-us/troubleshoot/azure/entra/entra-id/app-integration/error-code-AADSTS50011-redirect-uri-mismatch) and "A claim with id "UserId" was not found, which is required by ClaimsTransformation 'CreateAlternativeSecurityId' in policy 'B2C_1_signin' of tenant.
I would appreciate if you could confirm my understanding of the process, and also if you could offer some help on these errors.
Thanks, Richard