AuthorizationOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides programmatic configuration used by IAuthorizationService and IAuthorizationPolicyProvider.
public ref class AuthorizationOptions
public class AuthorizationOptions
type AuthorizationOptions = class
Public Class AuthorizationOptions
- Inheritance
-
AuthorizationOptions
Constructors
AuthorizationOptions() |
Properties
DefaultPolicy |
Gets or sets the default authorization policy. Defaults to requiring authenticated users. |
FallbackPolicy |
Gets or sets the fallback authorization policy used by CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)
when no authorization metadata (e.g., |
InvokeHandlersAfterFailure |
Determines whether authorization handlers should be invoked after HasFailed. Defaults to true. |
Methods
AddPolicy(String, Action<AuthorizationPolicyBuilder>) |
Add a policy that is built from a delegate with the provided name. |
AddPolicy(String, AuthorizationPolicy) |
Add an authorization policy with the provided name. |
GetPolicy(String) |
Returns the policy for the specified name, or null if a policy with the name does not exist. |