4 implementations of IAuthorizationHandler
Microsoft.AspNetCore.Authorization (4)
AssertionRequirement.cs (1)
14
public class AssertionRequirement :
IAuthorizationHandler
, IAuthorizationRequirement
AuthorizationHandler.cs (2)
12
public abstract class AuthorizationHandler<TRequirement> :
IAuthorizationHandler
41
public abstract class AuthorizationHandler<TRequirement, TResource> :
IAuthorizationHandler
PassThroughAuthorizationHandler.cs (1)
13
public class PassThroughAuthorizationHandler :
IAuthorizationHandler
24 references to IAuthorizationHandler
Microsoft.AspNetCore.Authorization (24)
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)
14
/// 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)
11
/// be its own <see cref="
IAuthorizationHandler
"/>.
36
foreach (
var
handler in new RequirementsOfType<
IAuthorizationHandler
>(context.Requirements))
RequirementsOfType.cs (2)
22
/// <see cref="
IAuthorizationHandler
.HandleAsync(AuthorizationHandlerContext)"/> call. This struct enumerable avoids
30
/// uses it with <see cref="
IAuthorizationHandler
"/>, which does not derive from <see cref="IAuthorizationRequirement"/>.
RolesAuthorizationRequirement.cs (1)
13
/// Implements an <see cref="
IAuthorizationHandler
"/> and <see cref="IAuthorizationRequirement"/>