2 instantiations of AuthorizationMiddleware
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
998return new AuthorizationMiddleware(requestDelegate, policyProvider, services, logger);
Microsoft.AspNetCore.Security.Microbenchmarks (1)
AuthorizationMiddlewareBenchmark.cs (1)
22_authorizationMiddleware = new AuthorizationMiddleware((context) => Task.CompletedTask, policyProvider);
55 references to AuthorizationMiddleware
Microsoft.AspNetCore.Authorization.Policy (7)
AuthorizationAppBuilderExtensions.cs (1)
18/// Adds the <see cref="AuthorizationMiddleware"/> to the specified <see cref="IApplicationBuilder"/>, which enables authorization capabilities.
AuthorizationMiddleware.cs (6)
19ILogger<AuthorizationMiddleware> logger) : AuthorizationMiddleware(next, policyProvider, services, logger) 40private readonly ILogger<AuthorizationMiddleware>? _logger; 43/// Initializes a new instance of <see cref="AuthorizationMiddleware"/>. 56/// Initializes a new instance of <see cref="AuthorizationMiddleware"/>. 65ILogger<AuthorizationMiddleware> logger) : this(next, policyProvider, services) 71/// Initializes a new instance of <see cref="AuthorizationMiddleware"/>.
Microsoft.AspNetCore.Authorization.Test (47)
AuthorizationMiddlewareTests.cs (47)
32var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 50var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 52var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 71var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 90var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 92var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 112var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 114var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 133var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 135var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 155var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 157var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 177var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 179var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 203var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 204var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 246var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 254var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, services, logger.Object); 363var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 364var middleware = CreateMiddleware(next.Invoke, policyProvider, services, logger.Object); 397var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 398var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 432var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 470var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 492var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 512var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 534var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 552var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 572var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 593var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 613var logger = new Mock<ILogger<AuthorizationMiddleware>>(); 615var middleware = CreateMiddleware(next.Invoke, policyProvider.Object, logger: logger.Object); 637var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 661var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 690var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 711var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 733var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 756var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 777var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 801var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 841var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 864var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 890var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 929var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 955var middleware = CreateMiddleware(next.Invoke, policyProvider.Object); 994private AuthorizationMiddleware CreateMiddleware(RequestDelegate requestDelegate = null, IAuthorizationPolicyProvider policyProvider = null, IServiceProvider services = null, ILogger<AuthorizationMiddleware> logger = null)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
AuthorizationMiddlewareBenchmark.cs (1)
14private AuthorizationMiddleware _authorizationMiddleware;