21 instantiations of AuthenticationBuilder
Aspire.Keycloak.Authentication.Tests (20)
KeycloakAuthenticationPublicApiTests.cs (20)
33
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
51
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
83
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
102
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
121
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
154
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
173
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
211
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
235
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
259
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
296
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
314
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
346
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
365
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
384
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
417
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
436
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
474
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
498
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
522
AuthenticationBuilder builder = new
AuthenticationBuilder
(services);
Microsoft.AspNetCore.Authentication (1)
AuthenticationServiceCollectionExtensions.cs (1)
32
return new
AuthenticationBuilder
(services);
129 references to AuthenticationBuilder
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
723
var
authentication = builder.Services
Aspire.Keycloak.Authentication (25)
AspireKeycloakExtensions.cs (25)
13
/// Provides extension methods for registering Keycloak-related services in an <see cref="
AuthenticationBuilder
"/>.
22
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
29
public static
AuthenticationBuilder
AddKeycloakJwtBearer(this
AuthenticationBuilder
builder, string serviceName, string realm)
35
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
43
public static
AuthenticationBuilder
AddKeycloakJwtBearer(this
AuthenticationBuilder
builder, string serviceName, string realm, string authenticationScheme)
49
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
57
public static
AuthenticationBuilder
AddKeycloakJwtBearer(this
AuthenticationBuilder
builder, string serviceName, string realm, Action<JwtBearerOptions>? configureOptions)
63
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
72
public static
AuthenticationBuilder
AddKeycloakJwtBearer(
73
this
AuthenticationBuilder
builder,
104
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
111
public static
AuthenticationBuilder
AddKeycloakOpenIdConnect(this
AuthenticationBuilder
builder, string serviceName, string realm)
117
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
125
public static
AuthenticationBuilder
AddKeycloakOpenIdConnect(this
AuthenticationBuilder
builder, string serviceName, string realm, string authenticationScheme)
131
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
139
public static
AuthenticationBuilder
AddKeycloakOpenIdConnect(this
AuthenticationBuilder
builder, string serviceName, string realm, Action<OpenIdConnectOptions>? configureOptions)
145
/// <param name="builder">The <see cref="
AuthenticationBuilder
" /> to add services to.</param>
154
public static
AuthenticationBuilder
AddKeycloakOpenIdConnect(
155
this
AuthenticationBuilder
builder,
Aspire.Keycloak.Authentication.Tests (28)
KeycloakAuthenticationPublicApiTests.cs (28)
17
AuthenticationBuilder
builder = null!;
33
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
51
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
66
AuthenticationBuilder
builder = null!;
83
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
102
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
121
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
137
AuthenticationBuilder
builder = null!;
154
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
173
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
189
AuthenticationBuilder
builder = null!;
211
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
235
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
259
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
280
AuthenticationBuilder
builder = null!;
296
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
314
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
329
AuthenticationBuilder
builder = null!;
346
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
365
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
384
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
400
AuthenticationBuilder
builder = null!;
417
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
436
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
452
AuthenticationBuilder
builder = null!;
474
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
498
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
522
AuthenticationBuilder
builder = new AuthenticationBuilder(services);
Microsoft.AspNetCore.Authentication (13)
AuthenticationBuilder.cs (6)
17
/// Initializes a new instance of <see cref="
AuthenticationBuilder
"/>.
30
private
AuthenticationBuilder
AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
65
public virtual
AuthenticationBuilder
AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
78
public virtual
AuthenticationBuilder
AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, Action<TOptions>? configureOptions)
93
public virtual
AuthenticationBuilder
AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions)
109
public virtual
AuthenticationBuilder
AddPolicyScheme(string authenticationScheme, string? displayName, Action<PolicySchemeOptions> configureOptions)
AuthenticationServiceCollectionExtensions.cs (7)
18
/// <returns>A <see cref="
AuthenticationBuilder
"/> that can be used to further configure authentication.</returns>
19
public static
AuthenticationBuilder
AddAuthentication(this IServiceCollection services)
41
/// <returns>A <see cref="
AuthenticationBuilder
"/> that can be used to further configure authentication.</returns>
42
public static
AuthenticationBuilder
AddAuthentication(this IServiceCollection services, string defaultScheme)
50
/// <returns>A <see cref="
AuthenticationBuilder
"/> that can be used to further configure authentication.</returns>
51
public static
AuthenticationBuilder
AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions)
56
var
builder = services.AddAuthentication();
Microsoft.AspNetCore.Authentication.BearerToken (12)
BearerTokenExtensions.cs (12)
23
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
25
public static
AuthenticationBuilder
AddBearerToken(this
AuthenticationBuilder
builder)
34
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
37
public static
AuthenticationBuilder
AddBearerToken(this
AuthenticationBuilder
builder, string authenticationScheme)
46
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
49
public static
AuthenticationBuilder
AddBearerToken(this
AuthenticationBuilder
builder, Action<BearerTokenOptions> configure)
58
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
62
public static
AuthenticationBuilder
AddBearerToken(this
AuthenticationBuilder
builder, string authenticationScheme, Action<BearerTokenOptions> configure)
Microsoft.AspNetCore.Authentication.Cookies (20)
CookieExtensions.cs (20)
17
/// Adds cookie authentication to <see cref="
AuthenticationBuilder
"/> using the default scheme.
23
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
25
public static
AuthenticationBuilder
AddCookie(this
AuthenticationBuilder
builder)
29
/// Adds cookie authentication to <see cref="
AuthenticationBuilder
"/> using the specified scheme.
34
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
37
public static
AuthenticationBuilder
AddCookie(this
AuthenticationBuilder
builder, string authenticationScheme)
41
/// Adds cookie authentication to <see cref="
AuthenticationBuilder
"/> using the default scheme.
47
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
50
public static
AuthenticationBuilder
AddCookie(this
AuthenticationBuilder
builder, Action<CookieAuthenticationOptions> configureOptions)
54
/// Adds cookie authentication to <see cref="
AuthenticationBuilder
"/> using the specified scheme.
59
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
63
public static
AuthenticationBuilder
AddCookie(this
AuthenticationBuilder
builder, string authenticationScheme, Action<CookieAuthenticationOptions> configureOptions)
67
/// Adds cookie authentication to <see cref="
AuthenticationBuilder
"/> using the specified scheme.
72
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
77
public static
AuthenticationBuilder
AddCookie(this
AuthenticationBuilder
builder, string authenticationScheme, string? displayName, Action<CookieAuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.OAuth (16)
OAuthExtensions.cs (16)
18
/// Adds OAuth 2.0 based authentication to <see cref="
AuthenticationBuilder
"/> using the specified authentication scheme.
20
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
24
public static
AuthenticationBuilder
AddOAuth(this
AuthenticationBuilder
builder, string authenticationScheme, Action<OAuthOptions> configureOptions)
28
/// Adds OAuth 2.0 based authentication to <see cref="
AuthenticationBuilder
"/> using the specified authentication scheme.
30
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
35
public static
AuthenticationBuilder
AddOAuth(this
AuthenticationBuilder
builder, string authenticationScheme, string displayName, Action<OAuthOptions> configureOptions)
39
/// Adds OAuth 2.0 based authentication to <see cref="
AuthenticationBuilder
"/> using the specified authentication scheme.
41
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
45
public static
AuthenticationBuilder
AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this
AuthenticationBuilder
builder, string authenticationScheme, Action<TOptions> configureOptions)
51
/// Adds OAuth 2.0 based authentication to <see cref="
AuthenticationBuilder
"/> using the specified authentication scheme.
53
/// <param name="builder">The <see cref="
AuthenticationBuilder
"/>.</param>
58
public static
AuthenticationBuilder
AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this
AuthenticationBuilder
builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions)
Microsoft.AspNetCore.Identity (14)
IdentityBuilderExtensions.cs (2)
90
/// but does not configure authentication. Call <see cref="BearerTokenExtensions.AddBearerToken(
AuthenticationBuilder
, Action{BearerTokenOptions}?)"/> and/or
91
/// <see cref="IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies(
AuthenticationBuilder
)"/> to configure authentication separately.
IdentityCookiesBuilderExtensions.cs (12)
20
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
22
public static IdentityCookiesBuilder AddIdentityCookies(this
AuthenticationBuilder
builder)
28
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
31
public static IdentityCookiesBuilder AddIdentityCookies(this
AuthenticationBuilder
builder, Action<IdentityCookiesBuilder> configureCookies)
45
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
47
public static OptionsBuilder<CookieAuthenticationOptions> AddApplicationCookie(this
AuthenticationBuilder
builder)
63
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
65
public static OptionsBuilder<CookieAuthenticationOptions> AddExternalCookie(this
AuthenticationBuilder
builder)
78
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
80
public static OptionsBuilder<CookieAuthenticationOptions> AddTwoFactorRememberMeCookie(this
AuthenticationBuilder
builder)
96
/// <param name="builder">The current <see cref="
AuthenticationBuilder
"/> instance.</param>
98
public static OptionsBuilder<CookieAuthenticationOptions> AddTwoFactorUserIdCookie(this
AuthenticationBuilder
builder)