Authentication filter
- Source:
Methods
(method anonymous) HasAllowAnonymous(context) → {bool}
Has allow anonymous
Parameters:
Name | Type | Description |
---|---|---|
context |
AuthorizationFilterContext | Context |
- Source:
Returns:
- True if anonymous context is allowed, false otherwise
- Type
- bool
(method) OnAuthorizationAsync(context)
On authorization
Parameters:
Name | Type | Description |
---|---|---|
context |
AuthorizationFilterContext | Context |
- Source:
(method) SetUserAsync(user, context) → {Task}
Set user
Parameters:
Name | Type | Description |
---|---|---|
user |
ClaimsPrincipal | User |
context |
AuthorizationFilterContext | Context |
- Source:
Returns:
- Task
- Type
- Task