Skip to main content

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
TypeName
ServiceStack.MetadataOperationTypeop

InvalidAccessMessage(MetadataOperationType)

View Source
Declaration
public virtual string InvalidAccessMessage(MetadataOperationType op)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

OnParametersSetAsync()

View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns

Task

Implements

  • ServiceStack.IHasJsonApiClient