Interface IClaimsPrincipalAuthorization
Can be implemented to provide authorization based on a claims principal, a verb and a url
Namespace: FunctionMonkey.Abstractions
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface IClaimsPrincipalAuthorization
Methods
| Improve this Doc View SourceIsAuthorized(ClaimsPrincipal, String, String)
Should return true if the principal is authorized to access the resource, false if not
Declaration
Task<bool> IsAuthorized(ClaimsPrincipal claimsPrincipal, string httpVerb, string requestUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| ClaimsPrincipal | claimsPrincipal | The claims principal |
| System.String | httpVerb | The verb used to access the request |
| System.String | requestUrl | The request URL |
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> |