AuthorizationOptions.FallbackPolicy Property


Gets or sets the fallback authorization policy used by CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>) when no IAuthorizeData have been provided. As a result, the AuthorizationMiddleware uses the fallback policy if there are no IAuthorizeData instances for a resource. If a resource has any IAuthorizeData then they are evaluated instead of the fallback policy. By default the fallback policy is null, and usually will have no effect unless you have the AuthorizationMiddleware in your pipeline. It is not used in any way by the default IAuthorizationService.

 property Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ FallbackPolicy { Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ get(); void set(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ value); };
public Microsoft.AspNetCore.Authorization.AuthorizationPolicy FallbackPolicy { get; set; }
public Microsoft.AspNetCore.Authorization.AuthorizationPolicy? FallbackPolicy { get; set; }
member this.FallbackPolicy : Microsoft.AspNetCore.Authorization.AuthorizationPolicy with get, set
Public Property FallbackPolicy As AuthorizationPolicy

Property Value

Applies to