Show / Hide Table of Contents

Interface IAuthorizationService

Singleton application service contract for handling authorization.

Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract]
public interface IAuthorizationService

Methods

| Improve this Doc View Source

AuthorizeAsync(IAuthorizationContext, CancellationToken)

Authorizes the provided context asynchronously.

Declaration
Task<bool> AuthorizeAsync(IAuthorizationContext authContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAuthorizationContext authContext

Context for the authorization.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

An asynchronous result returning true if permission is granted, false if not.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
AuthorizationServiceExtensions.Authorize(IAuthorizationService, IAuthorizationContext)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX