DenyAnonymousAuthorizationRequirement 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.
Implements an IAuthorizationHandler and IAuthorizationRequirement which requires the current user must be authenticated. This calls Succeed(IAuthorizationRequirement) for authenticated users. Like all built-in requirements, it never calls Fail(). The DefaultAuthorizationEvaluator produces a failed AuthorizationResult when any requirement has not succeeded even if other requirements have succeeded, and no requirement has explicitly failed.
public ref class DenyAnonymousAuthorizationRequirement : Microsoft::AspNetCore::Authorization::AuthorizationHandler<Microsoft::AspNetCore::Authorization::Infrastructure::DenyAnonymousAuthorizationRequirement ^>, Microsoft::AspNetCore::Authorization::IAuthorizationRequirement
public class DenyAnonymousAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler<Microsoft.AspNetCore.Authorization.Infrastructure.DenyAnonymousAuthorizationRequirement>, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement
type DenyAnonymousAuthorizationRequirement = class
inherit AuthorizationHandler<DenyAnonymousAuthorizationRequirement>
interface IAuthorizationRequirement
Public Class DenyAnonymousAuthorizationRequirement
Inherits AuthorizationHandler(Of DenyAnonymousAuthorizationRequirement)
Implements IAuthorizationRequirement
- Inheritance
-
DenyAnonymousAuthorizationRequirement
- Implements
Constructors
DenyAnonymousAuthorizationRequirement() |
Methods
HandleAsync(AuthorizationHandlerContext) |
Makes a decision if authorization is allowed. (Inherited from AuthorizationHandler<TRequirement>) |
HandleRequirementAsync(AuthorizationHandlerContext, DenyAnonymousAuthorizationRequirement) |
Makes a decision if authorization is allowed based on a specific requirement. |
HandleRequirementAsync(AuthorizationHandlerContext, TRequirement) |
Makes a decision if authorization is allowed based on a specific requirement. (Inherited from AuthorizationHandler<TRequirement>) |
ToString() | Returns a string that represents the current object. |