AbstractAcquireTokenParameterBuilder<T>.WithB2CAuthority(String) Method

Definition

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

public T WithB2CAuthority (string authorityUri);
member this.WithB2CAuthority : string -> 'T
Public Function WithB2CAuthority (authorityUri As String) As T

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