Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Default |
Gets or sets the default authorization policy. Defaults to requiring authenticated users. |
Fallback |
Gets or sets the fallback authorization policy used by CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)
when no authorization metadata (e.g., |
Invoke |
Determines whether authorization handlers should be invoked after HasFailed. Defaults to true. |
Add |
Add a policy that is built from a delegate with the provided name. |
Add |
Add an authorization policy with the provided name. |
Get |
Returns the policy for the specified name, or null if a policy with the name does not exist. |
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in