Class GoogleOpenIdConnectExtensions (1.55.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
NameDescription
builderAuthenticationBuilder

The current .

Returns
TypeDescription
AuthenticationBuilder

The current .

AddGoogleOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

public static AuthenticationBuilder AddGoogleOpenIdConnect(this AuthenticationBuilder builder, Action<OpenIdConnectOptions> configureOptions)

Add Google OpenIdConnect authentication.

Parameters
NameDescription
builderAuthenticationBuilder

The current .

configureOptionsAction<OpenIdConnectOptions>

Function allowing option customization.

Returns
TypeDescription
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
NameDescription
builderAuthenticationBuilder

The current .

authenticationSchemeString

The name of this authentication scheme.

configureOptionsAction<OpenIdConnectOptions>

Function allowing option customization.

Returns
TypeDescription
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
NameDescription
builderAuthenticationBuilder

The current .

authenticationSchemeString

The name of this authentication scheme.

displayNameString

The display name of this authentication scheme.

configureOptionsAction<OpenIdConnectOptions>

Function allowing option customization.

Returns
TypeDescription
AuthenticationBuilder

The current .