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 AuthenticationBuilder. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current AuthenticationBuilder. |
AddGoogleOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)
public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder, Action<OpenIdConnectOptions> configureOptions)Add Google OpenIdConnect authentication.
| Parameters | |
|---|---|
| Name | Description |
builder |
AuthenticationBuilderThe current AuthenticationBuilder. |
configureOptions |
ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptionsFunction allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current AuthenticationBuilder. |
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 AuthenticationBuilder. |
authenticationScheme |
stringThe name of this authentication scheme. |
configureOptions |
ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptionsFunction allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current AuthenticationBuilder. |
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 AuthenticationBuilder. |
authenticationScheme |
stringThe name of this authentication scheme. |
displayName |
stringThe display name of this authentication scheme. |
configureOptions |
ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptionsFunction allowing option customization. |
| Returns | |
|---|---|
| Type | Description |
AuthenticationBuilder |
The current AuthenticationBuilder. |