AbstractApplicationBuilder<T>.WithB2CAuthority(String) Method

Definition

Adds a known authority corresponding to an Azure AD B2C policy. See https://aka.ms/msal-net-b2c-specificities

C#
public T WithB2CAuthority(string authorityUri);

Parameters

authorityUri
String

Azure AD B2C authority, including the B2C policy (for instance "https://fabrikamb2c.b2clogin.com/tfp/{Tenant}/{policy}

Returns

T

The builder to chain the .With methods

Applies to

Product Versions
Microsoft Authentication Library for .NET (MSAL.NET) latest