public static class GoogleOpenIdConnectExtensionsExtension methods to support Google OpenIdConnect authentication.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Apis.Auth.AspNetCore3.dll
Methods
AddGoogleOpenIdConnect(AuthenticationBuilder)
public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder)Add Google OpenIdConnect authentication.
| Parameter | |
|---|---|
| Name | Description |
builder |
AuthenticationBuilderThe current . |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current . |
AddGoogleOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)
public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder, Action<OpenIdConnectOptions> configureOptions)Add Google OpenIdConnect authentication.
| Parameters | |
|---|---|
| Name | Description |
builder |
AuthenticationBuilderThe current . |
configureOptions |
Action<OpenIdConnectOptions>Function allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current . |
AddGoogleOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)
public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, Action<OpenIdConnectOptions> configureOptions)Add Google OpenIdConnect authentication.
| Parameters | |
|---|---|
| Name | Description |
builder |
AuthenticationBuilderThe current . |
authenticationScheme |
StringThe name of this authentication scheme. |
configureOptions |
Action<OpenIdConnectOptions>Function allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current . |
AddGoogleOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)
public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<OpenIdConnectOptions> configureOptions)Add Google OpenIdConnect authentication.
| Parameters | |
|---|---|
| Name | Description |
builder |
AuthenticationBuilderThe current . |
authenticationScheme |
StringThe name of this authentication scheme. |
displayName |
StringThe display name of this authentication scheme. |
configureOptions |
Action<OpenIdConnectOptions>Function allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current . |