How to make Azure B2C metadata url unique for Google Open Identity Provider (openid-configuration)

Kosmala, Kai 6 Reputation points
2022-12-20T15:54:03.38+00:00

Hi,

I'm facing a problem that the metadata url that I have, which is provided by google documentation is not unique per customer.

https://accounts.google.com/.well-known/openid-configuration

With Azure, there is a place to specify the tenant ID, and that's going to make the url unique, however, for the google url I couldn't find any documentation to make metadata url unique.

272601-image.png

So creating a first one is fine, it works perfectly, can connect one google organization to our B2C without problems, and the users are created/authenticated against the google workspaces. However, if the next customer comes on board and they also use the google workspaces, I don't have the ability to setup another IDP with signup flows, because I get above error when doing so.

What am I doing wrong, could anyone help please?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Arun Siripuram 911 Reputation points
    2022-12-20T16:37:32.167+00:00

    @Kosmala, Kai

    In Azure Active Directory B2C (Azure B2C), the metadata URL for an OpenID Connect provider (such as Google) is unique and is automatically generated by Azure B2C. You can find the metadata URL for a specific OpenID Connect provider by following these steps:

    1. Sign in to the Azure portal with your Azure B2C tenant.
    2. Navigate to the Azure B2C tenant's identity providers page by going to "Azure Active Directory" > "B2C Settings" > "Identity providers".
    3. On the identity providers page, select the OpenID Connect provider that you want to find the metadata URL for (e.g., Google).
    4. On the provider's details page, you will see a section called "Metadata URL". This is the metadata URL for the provider, and it should be unique to your Azure B2C tenant.

  2. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2022-12-22T10:14:29.087+00:00

    Hello @Kosmala, Kai ,

    Please be informed that the metadata URL comes from the identity provider you are configuring. This error is shown when you have two custom identity providers, the metadata point for which have the same issuer. Hence this error is expected.

    Azure AD B2C enforces the distinct issuer. The reason being that unique id of the user depends on the client Id in that system. If you have two apps in Facebook, Facebook will give you separate unique user Id for same user using different apps. So AADB2C wants that connection to one issuer is established through only one identity provider.

    However if you are not satisfied with the behavior then please have your feedback posted on Feedback portal

    Please do let me know if you have any further queries in the comments section.

    Thanks,
    Akshay Kaushik

    Please "Accept the answer", "Upvote" and rate your experience if the suggestion suits your query. This will help us and others in the community as well.


  3. Nishant Raj 0 Reputation points
    2024-10-24T11:49:27.32+00:00

    Hey Were you able to fix this? I am still looking into this. Do we create a different tenant? @Kosmala, Kai

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.