Class CookieAuthenticationStateProvider
public abstract class CookieAuthenticationStateProvider : AuthenticationStateProvider
- Inheritance
-
objectCookieAuthenticationStateProvider
- Inherited Members
Fields
AthenticationType
public const string AthenticationType = "AuthCookie"
Field Value
Properties
AutoSignoutOn401
public virtual bool AutoSignoutOn401 { get; }
Property Value
Methods
CreateClaimsIdentity(IEnumerable<Claim>, string)
protected virtual ClaimsIdentity CreateClaimsIdentity(IEnumerable<Claim> claims, string authenticationType)
Parameters
claims
IEnumerable<Claim>authenticationType
string
Returns
CreateClaimsPrincipal(ClaimsIdentity)
protected virtual ClaimsPrincipal CreateClaimsPrincipal(ClaimsIdentity identity)
Parameters
identity
ClaimsIdentity
Returns
GetAuthenticationStateAsync()
Asynchronously gets an AuthenticationState that describes the current user.
public override Task<AuthenticationState> GetAuthenticationStateAsync()
Returns
- Task<AuthenticationState>
A task that, when resolved, gives an AuthenticationState instance that describes the current user.
GetUserInfo()
protected abstract Task<CookieAuthenticationStateProvider.UserInfo> GetUserInfo()
Returns
RefreshUserInfo()
protected virtual Task RefreshUserInfo()
Returns
SignOut()
public virtual void SignOut()