Class GoogleOpenIdConnectExtensions (1.60.0)

public static class GoogleOpenIdConnectExtensions

Extension methods to support Google OpenIdConnect authentication.

Inheritance

object > GoogleOpenIdConnectExtensions

Namespace

MicrosoftMicrosoft.ExtensionsDependencyInjection

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 .

configureOptionsActionOpenIdConnectOptions

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.

configureOptionsActionOpenIdConnectOptions

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.

configureOptionsActionOpenIdConnectOptions

Function allowing option customization.

Returns
TypeDescription
AuthenticationBuilder

The current .