Метод | Описание | |
---|---|---|
BuildComputerAccountToken ( |
||
BuildToken ( |
||
Has ( bool>.Func |
Checks if token contains the claim requested.
|
|
Has ( string ClaimKey ) : bool |
Checks if token contains the claim requested.
|
|
HasAll ( ) : bool |
Checks if token contains all the claims requested.
|
|
HasAll ( IEnumerable |
Checks if token contains all the claims requested.
|
|
HasAny ( ) : bool |
Checks if token contains at least one of the claims requested.
|
|
HasAny ( IEnumerable |
Checks if token contains at least one of the claims requested.
|
|
Require ( string ClaimKey ) : void |
Validates the token contains the claim required. An Disco.Services.Authorization.AccessDeniedException is thrown if the requirements are not met.
|
|
RequireAll ( ) : void |
Validates the token contains all the claims required. An Disco.Services.Authorization.AccessDeniedException is thrown if the requirements are not met.
|
|
RequireAny ( ) : void |
Validates the token contains at least one of the claims required. An Disco.Services.Authorization.AccessDeniedException is thrown if the requirements are not met.
|
Метод | Описание | |
---|---|---|
BuildRequireAllMessage ( IEnumerable |
||
BuildRequireAnyMessage ( IEnumerable |
||
BuildRequireMessage ( string ClaimKey ) : string | ||
GetRequireResource ( ) : string |
public static BuildComputerAccountToken ( |
||
User | ||
Результат |
public static BuildToken ( |
||
User | ||
GroupMembership | IEnumerable |
|
Результат |
public Has ( bool>.Func |
||
ClaimAccessor | bool>.Func | A lambda which validates the tokens |
Результат | bool |
public Has ( string ClaimKey ) : bool | ||
ClaimKey | string | Claim Key from |
Результат | bool |
public HasAll ( IEnumerable |
||
ClaimKeys | IEnumerable |
Claim Keys from |
Результат | bool |
public HasAny ( IEnumerable |
||
ClaimKeys | IEnumerable |
Claim Keys from |
Результат | bool |
public Require ( string ClaimKey ) : void | ||
ClaimKey | string | Claim Key from |
Результат | void |