question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Remove requirement for including /tfp/ for B2C

See original GitHub issue

Is your feature request related to a problem? Please describe. If you are using B2C, you have to pass in this authority: https://{tenantName}.b2clogin.com/tfp/{tenant}/{policyName}

Most B2C users do not use /tfp/ anywhere in their code, so it doesn’t make sense to require it for MSAL libraries as part of the authority. Leads to confusion.

Describe the solution you’d like Braindump:

  • Remove .WithB2CAuthority and use introduce .WithAuthority(string authority, string trustFrameworkPolicy), which would look like this:

.WithAuthority("https://catsCity.b2clogin.com", "b2c_sisu") All B2C policies (including custom) are prefixed w/b2c. We’d have to have the policy included to know what to target.

  • Revisit previous proposal:

.WithB2CAuthority("https://catsCity.b2clogin.com")

.WithTrustFrameworkPolicy("b2c_sisu")

  • .WithB2CAuthority(https://{tenantName}.b2clogin.com/{tenant}/{policyName})

  • .WithAuthority(https://{tenantName}.b2clogin.com/{tenant}/{policyName}) and look for b2c in the policy to determine it’s b2c

  • In the case of custom domains, the domain name and the tenant name might be different, so require this as the authority for b2c: .WithAuthority("https://cats.com/petsUnlimited.onmicrosoft.com", "b2c_sisu")

Additional context We have to know the authority and the policy for b2c. So any proposals must include those two parameters.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jmprieurcommented, Sep 25, 2019

ok @jennyf19. I thought that I created it as an outcome of the group. But maybe not. I don’t remember. Closing it, then.

1reaction
jennyf19commented, Aug 1, 2019

@henrik-me You’re referring to TrustFrameworkPolicy? I’m not sure, but can find out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure tokens - Azure Active Directory B2C
Open the user flow that you previously created. Select Properties. Under Token lifetime, adjust the properties to fit the needs of your ...
Read more >
Configure Azure AD B2C for PowerApps Portals
After these items are setup, the Azure AD B2C tenant needs to be linked to the Azure Subscription. Click on the “Link an...
Read more >
How to integrate azure b2c with react
I am working with react and I have to give my user login through Azure B2C , So I am trying to do...
Read more >
Go to Azure Portal (for B2C Tenant) All Users. The logs are ...
The number of users able to authenticate through an Azure AD B2C tenant is gated through request limits. The following Microsoft Graph API...
Read more >
Azure b2c token exchange. WithB2CAuthority (_authority ...
However, B2C tokens seem to include a tfp-claim referring to the policy name ... As described in the Authorization request scope is required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found