AuthenticationProperties AuthenticationProperties AuthenticationProperties Class

Definition

Dictionary used to store state values about the authentication session.

public class AuthenticationProperties
type AuthenticationProperties = class
Public Class AuthenticationProperties
Inheritance
AuthenticationPropertiesAuthenticationPropertiesAuthenticationProperties
Derived

Constructors

AuthenticationProperties() AuthenticationProperties() AuthenticationProperties()

Initializes a new instance of the AuthenticationProperties class.

AuthenticationProperties(IDictionary<String,String>) AuthenticationProperties(IDictionary<String,String>) AuthenticationProperties(IDictionary<String,String>)

Initializes a new instance of the AuthenticationProperties class.

AuthenticationProperties(IDictionary<String,String>, IDictionary<String,Object>) AuthenticationProperties(IDictionary<String,String>, IDictionary<String,Object>) AuthenticationProperties(IDictionary<String,String>, IDictionary<String,Object>)

Initializes a new instance of the AuthenticationProperties class.

Properties

AllowRefresh AllowRefresh AllowRefresh

Gets or sets if refreshing the authentication session should be allowed.

ExpiresUtc ExpiresUtc ExpiresUtc

Gets or sets the time at which the authentication ticket expires.

IsPersistent IsPersistent IsPersistent

Gets or sets whether the authentication session is persisted across multiple requests.

IssuedUtc IssuedUtc IssuedUtc

Gets or sets the time at which the authentication ticket was issued.

Items Items Items

State values about the authentication session.

Parameters Parameters Parameters

Collection of parameters that are passed to the authentication handler. These are not intended for serialization or persistence, only for flowing data between call sites.

RedirectUri RedirectUri RedirectUri

Gets or sets the full path or absolute URI to be used as an http redirect response value.

Methods

GetBool(String) GetBool(String) GetBool(String)

Get a bool value from the Items collection.

GetDateTimeOffset(String) GetDateTimeOffset(String) GetDateTimeOffset(String)

Get a DateTimeOffset value from the Items collection.

GetParameter<T>(String) GetParameter<T>(String) GetParameter<T>(String)

Get a parameter from the Parameters collection.

GetString(String) GetString(String) GetString(String)

Get a string value from the Items collection.

SetBool(String, Nullable<Boolean>) SetBool(String, Nullable<Boolean>) SetBool(String, Nullable<Boolean>)

Set a bool value in the Items collection.

SetDateTimeOffset(String, Nullable<DateTimeOffset>) SetDateTimeOffset(String, Nullable<DateTimeOffset>) SetDateTimeOffset(String, Nullable<DateTimeOffset>)

Set a DateTimeOffset value in the Items collection.

SetParameter<T>(String, T) SetParameter<T>(String, T) SetParameter<T>(String, T)

Set a parameter value in the Parameters collection.

SetString(String, String) SetString(String, String) SetString(String, String)

Set a string value in the Items collection.

Extension Methods

GetTokens(AuthenticationProperties) GetTokens(AuthenticationProperties) GetTokens(AuthenticationProperties)

Returns all of the AuthenticationTokens contained in the properties.

GetTokenValue(AuthenticationProperties, String) GetTokenValue(AuthenticationProperties, String) GetTokenValue(AuthenticationProperties, String)

Returns the value of a token.

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>) StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>) StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

Stores a set of authentication tokens, after removing any old tokens.

UpdateTokenValue(AuthenticationProperties, String, String) UpdateTokenValue(AuthenticationProperties, String, String) UpdateTokenValue(AuthenticationProperties, String, String)

Applies to