1 instantiation of AuthorizationBuilder
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyServiceCollectionExtensions.cs (1)
21
=> new
AuthorizationBuilder
(services.AddAuthorization());
19 references to AuthorizationBuilder
Microsoft.AspNetCore.Authorization (10)
AuthorizationBuilder.cs (10)
17
/// Initializes a new instance of <see cref="
AuthorizationBuilder
"/>.
33
public virtual
AuthorizationBuilder
SetInvokeHandlersAfterFailure(bool invoke)
46
public virtual
AuthorizationBuilder
SetDefaultPolicy(AuthorizationPolicy policy)
61
public virtual
AuthorizationBuilder
SetFallbackPolicy(AuthorizationPolicy? policy)
73
public virtual
AuthorizationBuilder
AddPolicy(string name, AuthorizationPolicy policy)
85
public virtual
AuthorizationBuilder
AddPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy)
97
public virtual
AuthorizationBuilder
AddDefaultPolicy(string name, AuthorizationPolicy policy)
109
public virtual
AuthorizationBuilder
AddDefaultPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy)
124
public virtual
AuthorizationBuilder
AddFallbackPolicy(string name, AuthorizationPolicy policy)
136
public virtual
AuthorizationBuilder
AddFallbackPolicy(string name, Action<AuthorizationPolicyBuilder> configurePolicy)
Microsoft.AspNetCore.Authorization.Policy (2)
PolicyServiceCollectionExtensions.cs (2)
19
/// <returns>The <see cref="
AuthorizationBuilder
"/> so that additional calls can be chained.</returns>
20
public static
AuthorizationBuilder
AddAuthorizationBuilder(this IServiceCollection services)
Microsoft.AspNetCore.Authorization.Test (7)
AuthorizationBuilderTests.cs (7)
17
var
builder = TestHelpers.CreateAuthorizationBuilder()
32
var
builder = TestHelpers.CreateAuthorizationBuilder()
48
var
builder = TestHelpers.CreateAuthorizationBuilder()
64
var
builder = TestHelpers.CreateAuthorizationBuilder()
79
var
builder = TestHelpers.CreateAuthorizationBuilder()
93
var
builder = TestHelpers.CreateAuthorizationBuilder()
109
public static
AuthorizationBuilder
CreateAuthorizationBuilder()