Language

AbstractAcquireTokenParameterBuilder<T>.WithAdfsAuthority Method

Definition

Caution

This API has been deprecated. Configure the ADFS authority at the application level instead. See https://aka.ms/msal-net-application-configuration

Adds a known Authority corresponding to an ADFS server. See https://aka.ms/msal-net-adfs.

[System.Obsolete("This API has been deprecated. Configure the ADFS authority at the application level instead. See https://aka.ms/msal-net-application-configuration")]
public T WithAdfsAuthority(string authorityUri, bool validateAuthority = true);
[<System.Obsolete("This API has been deprecated. Configure the ADFS authority at the application level instead. See https://aka.ms/msal-net-application-configuration")>]
member this.WithAdfsAuthority : string * bool -> 'T
Public Function WithAdfsAuthority (authorityUri As String, Optional validateAuthority As Boolean = true) As T

Parameters

authorityUri
String

Authority URL for an ADFS server.

validateAuthority
Boolean

Whether the authority should be validated against the server metadata.

Returns

T

The builder to chain the .With methods.

Attributes

Remarks

MSAL.NET supports ADFS 2019 or later.

Applies to