Class GoogleOpenIdConnectExtensions (1.68.0)

public static class GoogleOpenIdConnectExtensions

Extension methods to support Google OpenIdConnect authentication.

Inheritance

object > GoogleOpenIdConnectExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Apis.Auth.AspNetCore3.dll

Methods

AddGoogleOpenIdConnect(AuthenticationBuilder)

public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder)

Add Google OpenIdConnect authentication.

Parameter
Name Description
builder AuthenticationBuilder

The 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 AuthenticationBuilder

The current AuthenticationBuilder.

configureOptions ActionOpenIdConnectOptions

Function 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 AuthenticationBuilder

The current AuthenticationBuilder.

authenticationScheme string

The name of this authentication scheme.

configureOptions ActionOpenIdConnectOptions

Function 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 AuthenticationBuilder

The current AuthenticationBuilder.

authenticationScheme string

The name of this authentication scheme.

displayName string

The display name of this authentication scheme.

configureOptions ActionOpenIdConnectOptions

Function allowing option customization.

Returns
Type Description
AuthenticationBuilder

The current AuthenticationBuilder.