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
Type | Name |
---|---|
ServiceStack.Authenticate | request |
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
Type | Name |
---|---|
System.String | |
System.String | password |
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
Type | Name |
---|---|
System.String | redirectTo |
LogoutIfAuthenticatedAsync(String)
View Source
Declaration
public virtual async Task LogoutIfAuthenticatedAsync(string redirectTo = null)
Returns
Task
Parameters
Type | Name |
---|---|
System.String | redirectTo |
RegisterAsync(Register)
View Source
Declaration
public virtual async Task<ApiResult<RegisterResponse>> RegisterAsync(Register request)
Returns
Task<ServiceStack.ApiResult<ServiceStack.RegisterResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.Register | request |
SignInAsync(ApiResult<AuthenticateResponse>)
View Source
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(ApiResult<AuthenticateResponse> api)
Returns
Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.ApiResult<TResponse> | api |
SignInAsync(AuthenticateResponse)
View Source
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(AuthenticateResponse authResponse)
Returns
Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.AuthenticateResponse | authResponse |
SignInAsync(RegisterResponse)
View Source
Declaration
public virtual Task<ApiResult<AuthenticateResponse>> SignInAsync(RegisterResponse registerResponse)
Returns
Task<ServiceStack.ApiResult<ServiceStack.AuthenticateResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.RegisterResponse | registerResponse |