Show / Hide Table of Contents

Class AuthorizationContext

An authorization context.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
Context
AuthorizationContext
Implements
IAuthorizationContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable
Inherited Members
Context.AmbientServices
Context.CompositionContext
Context.Identity
Context.Logger
Context.Dispose()
Context.ValidateIdentity(IIdentity, IIdentity)
Context.SetCompositionContext(ICompositionContext)
Context.SetAmbientServices(IAmbientServices)
Context.Dispose(Boolean)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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 class AuthorizationContext : Context, IAuthorizationContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable

Constructors

| Improve this Doc View Source

AuthorizationContext(IContext, IEnumerable<String>, IEnumerable<Type>, Object)

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, IEnumerable<string> requiredPermissions, IEnumerable<Type> requiredPermissionTypes, object scope = null)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.Collections.Generic.IEnumerable<System.String> requiredPermissions

The required permissions.

System.Collections.Generic.IEnumerable<System.Type> requiredPermissionTypes

The required permission types.

System.Object scope

Optional. The authorization scope.

| Improve this Doc View Source

AuthorizationContext(IContext, IEnumerable<String>, Object)

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, IEnumerable<string> requiredPermissions, object scope = null)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.Collections.Generic.IEnumerable<System.String> requiredPermissions

A variable-length parameters list containing required permissions.

System.Object scope

Optional. The authorization scope.

| Improve this Doc View Source

AuthorizationContext(IContext, IEnumerable<Type>, Object)

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, IEnumerable<Type> requiredPermissions, object scope = null)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.Collections.Generic.IEnumerable<System.Type> requiredPermissions

A variable-length parameters list containing required permissions.

System.Object scope

Optional. The authorization scope.

| Improve this Doc View Source

AuthorizationContext(IContext, Object)

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, object scope)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.Object scope

The authorization scope.

| Improve this Doc View Source

AuthorizationContext(IContext, String[])

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, params string[] requiredPermissions)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.String[] requiredPermissions

A variable-length parameters list containing required permissions.

| Improve this Doc View Source

AuthorizationContext(IContext, Type[])

Initializes a new instance of the AuthorizationContext class.

Declaration
public AuthorizationContext(IContext executingContext, params Type[] requiredPermissions)
Parameters
Type Name Description
IContext executingContext

Context for the executing.

System.Type[] requiredPermissions

A variable-length parameters list containing required permissions.

Properties

| Improve this Doc View Source

RequiredPermissions

Gets the required permissions.

Declaration
public IEnumerable<string> RequiredPermissions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

The required permissions.

| Improve this Doc View Source

RequiredPermissionTypes

Gets the types of the required permissions.

Declaration
public IEnumerable<Type> RequiredPermissionTypes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Type>

The types of the required permissions.

| Improve this Doc View Source

Scope

Gets or sets the authorization scope.

Declaration
public object Scope { get; set; }
Property Value
Type Description
System.Object

The scope.

| Improve this Doc View Source

ThrowOnFailure

Gets or sets a value indicating whether to throw on failure.

Declaration
public bool ThrowOnFailure { get; set; }
Property Value
Type Description
System.Boolean

True if throw on failure, false if not.

Implements

IAuthorizationContext
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.IDisposable

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>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
ContextExtensions.WithIdentity<TContext>(TContext, IIdentity)
ContextExtensions.WithLogger<TContext>(TContext, ILogger)
ContextExtensions.AddResource<TContext>(TContext, IDisposable[])
MessageBrokerExtensions.CreateBrokeredMessageBuilder(IContext)
ContextExtensions.InitialData(IContext)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<(Object entity, ChangeState changeState)>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<Object>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<IChangeStateTrackableEntityEntry>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX