Class BackOfficeHandler
Ensures authorization is successful for a back office user.
Inheritance
System.Object
Microsoft.AspNetCore.Authorization.AuthorizationHandler<BackOfficeRequirement>
Namespace: Umbraco.Cms.Web.BackOffice.Authorization
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class BackOfficeHandler : MustSatisfyRequirementAuthorizationHandler<BackOfficeRequirement>, IAuthorizationHandler
Constructors
View SourceBackOfficeHandler(IBackOfficeSecurityAccessor, IRuntimeState)
Declaration
public BackOfficeHandler(IBackOfficeSecurityAccessor backOfficeSecurity, IRuntimeState runtimeState)
Parameters
Type | Name | Description |
---|---|---|
IBackOfficeSecurityAccessor | backOfficeSecurity | |
IRuntimeState | runtimeState |
Methods
View SourceIsAuthorized(AuthorizationHandlerContext, BackOfficeRequirement)
Declaration
protected override Task<bool> IsAuthorized(AuthorizationHandlerContext context, BackOfficeRequirement requirement)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext | context | |
BackOfficeRequirement | requirement |
Returns
Type | Description |
---|---|
Task<System.Boolean> |