Search Results for

    Show / Hide Table of Contents

    Class RuntimeAuthorizationManager

    Provides authorization access checking for service operations. Authorization relies on authorization rules provided by repository and assigned to service, contract, endpoint, or specific operation.

    Inheritance
    object
    ServiceAuthorizationManager
    RuntimeAuthorizationManager
    Inherited Members
    ServiceAuthorizationManager.CheckAccess(OperationContext)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Security
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
    public sealed class RuntimeAuthorizationManager : ServiceAuthorizationManager
    Remarks

    Note: Authorization Manager is executed after all binding elements, but before message inspectors.

    Constructors

    RuntimeAuthorizationManager(ServiceAuthorizationManager)

    Initializes a new instance with the provided authorization manager that new instance is replacing.

    Declaration
    public RuntimeAuthorizationManager(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
    bool

    True, if access is granted; otherwise, false. If service has no authorization rules assigned then access is granted.

    Overrides
    ServiceAuthorizationManager.CheckAccess(OperationContext, ref Message)

    CheckAccessCore(OperationContext)

    Overrides standard WIF validation logic, so that messages with Null or empty "To" and "Action" headers can be processed.

    Declaration
    protected override bool CheckAccessCore(OperationContext operationContext)
    Parameters
    Type Name Description
    OperationContext operationContext

    The OperationContext for the current authorization request.

    Returns
    Type Description
    bool

    True, if access is granted; otherwise, false. If service has no authorization rules assigned then access is granted.

    Overrides
    ServiceAuthorizationManager.CheckAccessCore(OperationContext)

    GetAuthorizationPolicies(OperationContext)

    Returns policies that participate in policy evaluation.

    Declaration
    protected override ReadOnlyCollection<IAuthorizationPolicy> GetAuthorizationPolicies(OperationContext operationContext)
    Parameters
    Type Name Description
    OperationContext operationContext

    The OperationContext of the current authorization request.

    Returns
    Type Description
    ReadOnlyCollection<IAuthorizationPolicy>

    Collection of policies that participate in policy evaluation.

    Overrides
    ServiceAuthorizationManager.GetAuthorizationPolicies(OperationContext)
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation