Show / Hide Table of Contents

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 Source

Authorize(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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX