EnsureAccess
Redirect to Sign In page if not authenticated or show access denied message if unauthorized
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class EnsureAccess : AuthBlazorComponentBase, IHasJsonApiClient
Properties
HtmlMessage
View Source
Declaration
public string HtmlMessage { get; set; }
Done
View Source
Declaration
public EventCallback Done { get; set; }
Title
View Source
Declaration
public string Title { get; set; }
SubHeading
View Source
Declaration
public string SubHeading { get; set; }
Inherited Properties
AuthenticationStateTask
View Source
Declaration
protected Task<AuthenticationState>? AuthenticationStateTask { get; set; }
HasInit
View Source
Declaration
protected bool HasInit { get; set; }
IsAuthenticated
View Source
Declaration
protected bool IsAuthenticated { get; }
User
View Source
Declaration
protected ClaimsPrincipal User { get; set; }
Inherited Methods
CanAccess(MetadataOperationType)
View Source
Declaration
protected virtual bool CanAccess(MetadataOperationType op)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
InvalidAccessMessage(MetadataOperationType)
View Source
Declaration
public virtual string InvalidAccessMessage(MetadataOperationType op)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
OnParametersSetAsync()
View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns
Task
Implements
ServiceStack.IHasJsonApiClient