AuthorizationEndpointConventionBuilderExtensions 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.
Authorization extension methods for IEndpointConventionBuilder.
public ref class AuthorizationEndpointConventionBuilderExtensions abstract sealed
public static class AuthorizationEndpointConventionBuilderExtensions
type AuthorizationEndpointConventionBuilderExtensions = class
Public Module AuthorizationEndpointConventionBuilderExtensions
- Inheritance
-
AuthorizationEndpointConventionBuilderExtensions
Methods
AllowAnonymous<TBuilder>(TBuilder) |
Allows anonymous access to the endpoint by adding AllowAnonymousAttribute to the endpoint metadata. This will bypass all authorization checks for the endpoint including the default authorization policy and fallback authorization policy. |
RequireAuthorization<TBuilder>(TBuilder) |
Adds the default authorization policy to the endpoint(s). |
RequireAuthorization<TBuilder>(TBuilder, Action<AuthorizationPolicyBuilder>) |
Adds an new authorization policy configured by a callback to the endpoint(s). |
RequireAuthorization<TBuilder>(TBuilder, AuthorizationPolicy) |
Adds an authorization policy to the endpoint(s). |
RequireAuthorization<TBuilder>(TBuilder, IAuthorizeData[]) |
Adds authorization policies with the specified IAuthorizeData to the endpoint(s). |
RequireAuthorization<TBuilder>(TBuilder, String[]) |
Adds authorization policies with the specified names to the endpoint(s). |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for