Table of Contents

Class CookieAuthenticationStateProvider

Namespace
Phoesion.Glow.SDK
Assembly
Phoesion.Glow.SDK.Blazor.WebAssembly.Authorization.Cookies.dll
public abstract class CookieAuthenticationStateProvider : AuthenticationStateProvider
Inheritance
object
CookieAuthenticationStateProvider
Inherited Members

Fields

AthenticationType

public const string AthenticationType = "AuthCookie"

Field Value

string

Properties

AutoSignoutOn401

public virtual bool AutoSignoutOn401 { get; }

Property Value

bool

Methods

CreateClaimsIdentity(IEnumerable<Claim>, string)

protected virtual ClaimsIdentity CreateClaimsIdentity(IEnumerable<Claim> claims, string authenticationType)

Parameters

claims IEnumerable<Claim>
authenticationType string

Returns

ClaimsIdentity

CreateClaimsPrincipal(ClaimsIdentity)

protected virtual ClaimsPrincipal CreateClaimsPrincipal(ClaimsIdentity identity)

Parameters

identity ClaimsIdentity

Returns

ClaimsPrincipal

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

Task<CookieAuthenticationStateProvider.UserInfo>

RefreshUserInfo()

protected virtual Task RefreshUserInfo()

Returns

Task

SignOut()

public virtual void SignOut()