AuthorizationEndpointConventionBuilderExtensions Class

Definition

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, 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