Interface IAuthorizationContext
Interface for authorization context.
Inherited Members
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
System.IDisposable.Dispose()
Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
public interface IAuthorizationContext : IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Properties
| Improve this Doc View SourceRequiredPermissions
Gets the required permissions.
Declaration
IEnumerable<string> RequiredPermissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | The required permissions. |
RequiredPermissionTypes
Gets the types of the required permissions.
Declaration
IEnumerable<Type> RequiredPermissionTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> | The types of the required permissions. |
Scope
Gets the authorization scope.
Declaration
object Scope { get; }
Property Value
Type | Description |
---|---|
System.Object | The scope. |
ThrowOnFailure
Gets a value indicating whether to throw on authorization failure.
If false
is indicated, the authorization check will return false
upon failure,
otherwise an exception will occur.
Declaration
bool ThrowOnFailure { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True to throw on authorization failure, false to not throw and return |