Class HubAuthorizationPolicy
The Hub Authorization Policy.
Inheritance
Implements
Inherited Members
Namespace: TheIdentityHub
Assembly: TheIdentityHub.dll
Syntax
public sealed class HubAuthorizationPolicy : IAuthorizationPolicy, IAuthorizationComponent
Properties
Id
Gets a string that identifies this authorization component.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Issuer
Gets the issuer.
Declaration
public ClaimSet Issuer { get; }
Property Value
Type | Description |
---|---|
System.IdentityModel.Claims.ClaimSet |
Methods
Evaluate(EvaluationContext, ref Object)
Evaluates whether a user meets the requirements for this authorization policy.
Declaration
public bool Evaluate(EvaluationContext evaluationContext, ref object state)
Parameters
Type | Name | Description |
---|---|---|
System.IdentityModel.Policy.EvaluationContext | evaluationContext | An System.IdentityModel.Policy.EvaluationContext that contains the claim set that the authorization policy evaluates. |
System.Object | state | A System.Object, passed by reference that represents the custom state for this authorization policy. |
Returns
Type | Description |
---|---|
System.Boolean | false if the System.IdentityModel.Policy.IAuthorizationPolicy.Evaluate(System.IdentityModel.Policy.EvaluationContext, System.Object) method for this authorization policy must be called if additional claims are added by other authorization policies to |