AuthenticationContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AuthenticationContext(String) |
Constructor to create the context with the address of the authority. Using this constructor will turn ON validation of the authority URL by default if validation is supported for the authority address. |
AuthenticationContext(String, TokenCache) |
Constructor to create the context with the address of the authority. Using this constructor will turn ON validation of the authority URL by default if validation is supported for the authority address. |
AuthenticationContext(String, Boolean) |
Constructor to create the context with the address of the authority and flag to turn address validation off. Using this constructor, address validation can be turned off. Make sure you are aware of the security implication of not validating the address. |
AuthenticationContext(String, Boolean, TokenCache) |
Constructor to create the context with the address of the authority and flag to turn address validation off. Using this constructor, address validation can be turned off. Make sure you are aware of the security implication of not validating the address. |
AuthenticationContext(String)
Constructor to create the context with the address of the authority. Using this constructor will turn ON validation of the authority URL by default if validation is supported for the authority address.
public AuthenticationContext (string authority);
new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext : string -> Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
Public Sub New (authority As String)
Parameters
- authority
- System.String
Address of the authority to issue token.
Applies to
AuthenticationContext(String, TokenCache)
Constructor to create the context with the address of the authority. Using this constructor will turn ON validation of the authority URL by default if validation is supported for the authority address.
public AuthenticationContext (string authority, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache tokenCache);
new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext : string * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
Parameters
- authority
- System.String
Address of the authority to issue token.
- tokenCache
- TokenCache
Token cache used to lookup cached tokens on calls to AcquireToken
Applies to
AuthenticationContext(String, Boolean)
Constructor to create the context with the address of the authority and flag to turn address validation off. Using this constructor, address validation can be turned off. Make sure you are aware of the security implication of not validating the address.
public AuthenticationContext (string authority, bool validateAuthority);
new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext : string * bool -> Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
Public Sub New (authority As String, validateAuthority As Boolean)
Parameters
- authority
- System.String
Address of the authority to issue token.
- validateAuthority
- System.Boolean
Flag to turn address validation ON or OFF.
Applies to
AuthenticationContext(String, Boolean, TokenCache)
Constructor to create the context with the address of the authority and flag to turn address validation off. Using this constructor, address validation can be turned off. Make sure you are aware of the security implication of not validating the address.
public AuthenticationContext (string authority, bool validateAuthority, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache tokenCache);
new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext : string * bool * Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache -> Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext
Parameters
- authority
- System.String
Address of the authority to issue token.
- validateAuthority
- System.Boolean
Flag to turn address validation ON or OFF.
- tokenCache
- TokenCache
Token cache used to lookup cached tokens on calls to AcquireToken