Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure AD B2C Authentication with Azure AD Multi-tenant

I have configured Azure AD multi-tenant autentication by following this article: https://docs.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-multi-tenant-custom?tabs=applications

The authentication worked on friday last week, but now its suddenly failing. I tried to re-register the application in Azure AD with new App Id and new App secret that was added in both ends.

Error i'm getting:

Sorry, but we’re having trouble with signing you in. AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

Am I overlooking something obvious?

Authentication is used with a SPA Web App using React with react-aad-msal

like image 558
Frode Avatar asked May 11 '20 08:05

Frode


People also ask

Is Azure B2C multi tenant?

Allowing users from multiple Azure AD tenants to sign in using Azure AD B2C, without you having to configure an identity provider for each tenant. However, guest members in any of these tenants will not be able to sign in. For that, you need to individually configure each tenant.

Can you convert an Azure AD tenant to Azure AD B2C tenant?

Azure AD and Azure AD B2C are separate product offerings and cannot coexist in the same tenant.

How does Azure B2C authentication work?

Azure AD B2C provides various ways in which users can authenticate a user. Users can sign-in to a local account, by using username and password, phone verification (also known as password-less authentication). Email sign-up is enabled by default in your local account identity provider settings.

Can Azure AD have multiple tenants?

Azure AD B2B collaboration enables users to use one set of credentials to sign in to multiple tenants. For educational institutions, the benefits of B2B collaboration include: Centralized administration team managing multiple tenants.


Video Answer


1 Answers

Solution: Changed platform configuration from SPA to Web solved it.

like image 158
Frode Avatar answered Oct 11 '22 23:10

Frode