4 implementations of IAuthorizationHandler
Microsoft.AspNetCore.Authorization (4)
AssertionRequirement.cs (1)
14
public class AssertionRequirement :
IAuthorizationHandler
, IAuthorizationRequirement
AuthorizationHandler.cs (2)
13
public abstract class AuthorizationHandler<TRequirement> :
IAuthorizationHandler
42
public abstract class AuthorizationHandler<TRequirement, TResource> :
IAuthorizationHandler
PassThroughAuthorizationHandler.cs (1)
14
public class PassThroughAuthorizationHandler :
IAuthorizationHandler
22 references to IAuthorizationHandler
Microsoft.AspNetCore.Authorization (22)
AssertionRequirement.cs (1)
11
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/>
AuthorizationFailure.cs (1)
30
/// Allows <see cref="
IAuthorizationHandler
"/> to flow more detailed reasons for why authorization failed.
AuthorizationFailureReason.cs (3)
16
public AuthorizationFailureReason(
IAuthorizationHandler
handler, string message)
28
/// The <see cref="
IAuthorizationHandler
"/> responsible for this failure reason.
30
public
IAuthorizationHandler
Handler { get; }
AuthorizationHandlerContext.cs (1)
13
/// Contains authorization information used by <see cref="
IAuthorizationHandler
"/>.
AuthorizationServiceCollectionExtensions.cs (1)
38
services.TryAddEnumerable(ServiceDescriptor.Transient<
IAuthorizationHandler
, PassThroughAuthorizationHandler>());
ClaimsAuthorizationRequirement.cs (1)
13
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/>
DefaultAuthorizationHandlerProvider.cs (5)
13
/// which provides the <see cref="
IAuthorizationHandler
"/>s for an authorization request.
17
private readonly Task<IEnumerable<
IAuthorizationHandler
>> _handlersTask;
22
/// <param name="handlers">The <see cref="
IAuthorizationHandler
"/>s.</param>
23
public DefaultAuthorizationHandlerProvider(IEnumerable<
IAuthorizationHandler
> handlers)
31
public Task<IEnumerable<
IAuthorizationHandler
>> GetHandlersAsync(AuthorizationHandlerContext context)
DefaultAuthorizationService.cs (1)
68
foreach (
var
handler in handlers)
DenyAnonymousAuthorizationRequirement.cs (1)
10
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/> which requires the current user must be authenticated.
IAuthorizationHandlerProvider.cs (2)
10
/// A type which can provide the <see cref="
IAuthorizationHandler
"/>s for an authorization request.
19
Task<IEnumerable<
IAuthorizationHandler
>> GetHandlersAsync(AuthorizationHandlerContext context);
NameAuthorizationRequirement.cs (1)
12
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/>
PassThroughAuthorizationHandler.cs (3)
12
/// be its own <see cref="
IAuthorizationHandler
"/>.
37
foreach (
var
handler in context.Requirements.OfType<
IAuthorizationHandler
>())
RolesAuthorizationRequirement.cs (1)
13
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/>