Class RepositoryAuthorizationManager
Performs authorization of the console users and nodes accessing repository service.
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class RepositoryAuthorizationManager : ServiceAuthorizationManager
Constructors
RepositoryAuthorizationManager(ServiceAuthorizationManager)
Initializes a new instance with the provided authorization manager that new instance is replacing.
Declaration
public RepositoryAuthorizationManager(ServiceAuthorizationManager innerAuthorizationManager)
Parameters
Type | Name | Description |
---|---|---|
ServiceAuthorizationManager | innerAuthorizationManager | Original authorization manager that new instance is replacing. |
Methods
CheckAccess(OperationContext, ref Message)
Checks authorization for the given operation context based on provided authorization rules, identity claims, and message content.
Declaration
public override bool CheckAccess(OperationContext operationContext, ref Message message)
Parameters
Type | Name | Description |
---|---|---|
OperationContext | operationContext | The OperationContext for the current authorization request. |
Message | message | The message to be examined to determine authorization. |
Returns
Type | Description |
---|---|
Boolean | True, if access is granted; otherwise, false. If service has no authorization rules assigned then access is granted. |
GetAuthorizationPolicies(OperationContext)
Adds policy for current authenticated ASP.NET user identity.
Declaration
protected override ReadOnlyCollection<IAuthorizationPolicy> GetAuthorizationPolicies(OperationContext operationContext)
Parameters
Type | Name | Description |
---|---|---|
OperationContext | operationContext | The OperationContext for the current authorization request. |
Returns
Type | Description |
---|---|
ReadOnlyCollection<IAuthorizationPolicy> | Collection of policies populated by the base class with optionaly added policy for current authenticated ASP.NET user identity. |