GoogleExtensions.AddGoogle Method

Definition

Overloads

AddGoogle(AuthenticationBuilder)

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

AddGoogle(AuthenticationBuilder)

Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

C#
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddGoogle (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);

Parameters

Returns

A reference to builder after the operation has completed.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)

Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

C#
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddGoogle (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Google.GoogleOptions> configureOptions);

Parameters

configureOptions
Action<GoogleOptions>

A delegate to configure GoogleOptions.

Returns

A reference to builder after the operation has completed.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)

Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

C#
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddGoogle (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Google.GoogleOptions> configureOptions);

Parameters

authenticationScheme
String

The authentication scheme.

configureOptions
Action<GoogleOptions>

A delegate to configure GoogleOptions.

Returns

A reference to builder after the operation has completed.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)

Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs
Source:
GoogleExtensions.cs

Adds Google OAuth-based authentication to AuthenticationBuilder using the default scheme. The default scheme is specified by AuthenticationScheme.

Google authentication allows application users to sign in with their Google account.

C#
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddGoogle (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.Google.GoogleOptions> configureOptions);

Parameters

authenticationScheme
String

The authentication scheme.

displayName
String

A display name for the authentication handler.

configureOptions
Action<GoogleOptions>

A delegate to configure GoogleOptions.

Returns

A reference to builder after the operation has completed.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0