Skip to main content

BlazorWasmAuthenticationStateProvider

Assembly: ServiceStack.Blazor.dll​
View Source​
Declaration
public class BlazorWasmAuthenticationStateProvider : AuthenticationStateProvider

Properties​

Log​

View Source​
Declaration
protected ILogger<BlazorWasmAuthenticationStateProvider> Log { get; }

Client​

View Source​
Declaration
protected JsonApiClient Client { get; }

NavigationManager​

View Source​
Declaration
protected NavigationManager NavigationManager { get; }

AuthUser​

View Source​
Declaration
public AuthenticateResponse AuthUser { get; }

IsAuthenticated​

View Source​
Declaration
public virtual bool IsAuthenticated { get; }

Fields​

authApi​

View Source​
Declaration
protected ApiResult<AuthenticateResponse> authApi

Methods​

GetAuthenticationStateAsync()​

View Source​
Declaration
public override async Task<AuthenticationState> GetAuthenticationStateAsync()
Returns​

Task<AuthenticationState>

LogoutIfAuthenticatedAsync(String)​

View Source​
Declaration
public virtual async Task LogoutIfAuthenticatedAsync(string redirectTo = null)
Returns​

Task

Parameters​
TypeName
System.StringredirectTo

LogoutAsync(String)​

View Source​
Declaration
public virtual async Task<ApiResult<AuthenticateResponse>> LogoutAsync(string redirectTo = null)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
System.StringredirectTo

SignInAsync(ApiResult<AuthenticateResponse>)​

View Source​
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(ApiResult<AuthenticateResponse> api)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
ServiceStack.ApiResult<TResponse>api

SignInAsync(AuthenticateResponse)​

View Source​
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(AuthenticateResponse authResponse)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
ServiceStack.AuthenticateResponseauthResponse

SignInAsync(RegisterResponse)​

View Source​
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(RegisterResponse registerResponse)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
ServiceStack.RegisterResponseregisterResponse

RegisterAsync(Register)​

View Source​
Declaration
public virtual async Task<ApiResult<RegisterResponse>> RegisterAsync(Register request)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.RegisterResponse>>

Parameters​
TypeName
ServiceStack.Registerrequest

LoginAsync(Authenticate)​

View Source​
Declaration
public virtual async Task<ApiResult<AuthenticateResponse>> LoginAsync(Authenticate request)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
ServiceStack.Authenticaterequest

LoginAsync(String, String, Nullable<Boolean>)​

View Source​
Declaration
public virtual async Task<ApiResult<AuthenticateResponse>> LoginAsync(string email, string password, bool? rememberMe = null)
Returns​

Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>

Parameters​
TypeName
System.Stringemail
System.Stringpassword
System.Nullable<System.Boolean>rememberMe