Class AuthorizationServiceExtensions
Extension methods for IAuthorizationService.
Inheritance
System.Object
AuthorizationServiceExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
public static class AuthorizationServiceExtensions
Methods
| Improve this Doc View SourceAuthorize(IAuthorizationService, IAuthorizationContext)
Authorizes the provided context.
Declaration
public static bool Authorize(this IAuthorizationService authorizationService, IAuthorizationContext authContext)
Parameters
Type | Name | Description |
---|---|---|
IAuthorizationService | authorizationService | The authorization service to act on. |
IAuthorizationContext | authContext | Context for the authorization. |
Returns
Type | Description |
---|---|
System.Boolean | An asynchronous result returning true if permission is granted, false if not. |