dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.59k stars 25.3k forks source link

B2C Instructions show ClientId and TenantId as '999...' without instructions for TenantId #25034

Open nhwilly opened 2 years ago

nhwilly commented 2 years ago

The JSON example shows this:

 "AzureAdB2C": {
    "Instance": "https://fabrikamb2c.b2clogin.com",
    "Domain": "fabrikamb2c.onmicrosoft.com",
    "ClientId": "99999999-9999-9999-9999-999999999999",
    "TenantId": "99999999-9999-9999-9999-999999999999",
    "SignedOutCallbackPath ": "/signout-callback-oidc",
    "SignUpSignInPolicyId": "your-user-flow"
  },

And the instructions read this:

For Domain, use the domain of your Azure AD B2C tenant.
For ClientId, use the Application (client) ID from the app registration you created in your tenant.
For Instance, use the domain of your Azure AD B2C tenant.
For SignUpSignInPolicyId, use the user flow policy defined in the Azure B2C tenant
Leave all other values as they are.

No mention of TenantId.

So, it's unclear what to put in the TenantId. Is this supposed to be a duplicate of the ClientId? Certainly, it can't be all 9's.

If not a duplicate, then where do we get it?


Document Details

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

serpent5 commented 2 years ago

@CamSoper I was just going to add an explanation for how to get the TenantId, but I noticed the example on the page just above uses common as the value. Is the most appropriate fix here to change the 99999999-9999-9999-9999-999999999999 to common?