Nabû 1.0.0
Standardizing .NET developments with abstractions
|
Public Member Functions | |
virtual async Task< HumbabaAuthorizationResult > | AuthorizeAsync (IHumbabaAuthorize[] requirements, ClaimsPrincipal? user=null) |
check if all requirements are authorized for user | |
Task< HumbabaAuthorizationResult > | AuthorizeAsync< T > (string? resourceValue=null, ClaimsPrincipal? user=null) |
check if the right T(resource) is authorized for user | |
async Task< IEnumerable< string > > | GetAuthorizedResources< T > (ClaimsPrincipal? user=null) |
Return all resource identifiers where the right T(resource) is authorized for user. | |
virtual Task< IEnumerable< string > > | GetAllResources () |
Return identifiers of all resource available in application. | |
![]() |
Protected Member Functions | |
Task< Role[]> | GetUserRoles (ClaimsPrincipal? user=null) |
|
virtual |
check if all requirements are authorized for user
requirements | |
user |
Implements Humbaba.Authorization.Services.IHumbabaAuthorizationService.
Task< HumbabaAuthorizationResult > Humbaba.Authorization.Services.AbstractHumbabaAuthorizationService.AuthorizeAsync< T > | ( | string? | resourceValue = null, |
ClaimsPrincipal? | user = null ) |
check if the right T(resource) is authorized for user
resourceValue | |
user |
T |
Implements Humbaba.Authorization.Services.IHumbabaAuthorizationService.
T | : | IHumbabaAuthorize | |
T | : | new() |
|
virtual |
Return identifiers of all resource available in application.
Implements Humbaba.Authorization.Services.IHumbabaAuthorizationService.
async Task< IEnumerable< string > > Humbaba.Authorization.Services.AbstractHumbabaAuthorizationService.GetAuthorizedResources< T > | ( | ClaimsPrincipal? | user = null | ) |
Return all resource identifiers where the right T(resource) is authorized for user.
user |
T |
Implements Humbaba.Authorization.Services.IHumbabaAuthorizationService.
T | : | IHumbabaAuthorize | |
T | : | new() |