Class RepositoryAuthorizationManager
Performs authorization of the console users and nodes accessing repository service.
Inheritance
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 |
---|---|---|
System.ServiceModel.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 |
---|---|---|
System.ServiceModel.OperationContext | operationContext | The System.ServiceModel.OperationContext for the current authorization request. |
System.ServiceModel.Channels.Message | message | The message to be examined to determine authorization. |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.ServiceModel.OperationContext | operationContext | The System.ServiceModel.OperationContext for the current authorization request. |
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> | Collection of policies populated by the base class with optionally added policy for current authenticated ASP.NET user identity. |