Skip to main content

ServiceStackAuthenticationStateProvider

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

Inherited Properties

AuthUser

View Source
Declaration
public AuthenticateResponse AuthUser { get; }

Client

View Source
Declaration
protected JsonApiClient Client { get; }

IsAuthenticated

View Source
Declaration
public virtual bool IsAuthenticated { get; }

Log

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

NavigationManager

View Source
Declaration
protected NavigationManager NavigationManager { get; }

Inherited Methods

GetAuthenticationStateAsync()

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

Task<AuthenticationState>

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

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

LogoutIfAuthenticatedAsync(String)

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

Task

Parameters
TypeName
System.StringredirectTo

RegisterAsync(Register)

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

Task<ServiceStack.ApiResult<ServiceStack.RegisterResponse>>

Parameters
TypeName
ServiceStack.Registerrequest

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