1.73.0 (latest) 1.69.0 1.68.0 1.60.0 1.59.0 1.55.0 1.50.0

    public static class GoogleOpenIdConnectExtensions

Extension methods to support Google OpenIdConnect authentication.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GoogleOpenIdConnectExtensions

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Microsoft.Extensions.DependencyInjection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Microsoft.Extensions.DependencyInjection.md.txt)

## 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](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.authenticationbuilder). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AuthenticationBuilder` | The current [AuthenticationBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.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](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.authenticationbuilder). |
| `configureOptions` | `ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions` Function allowing option customization. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AuthenticationBuilder` | The current [AuthenticationBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.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](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.authenticationbuilder). |
| `authenticationScheme` | `string` The name of this authentication scheme. |
| `configureOptions` | `ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions` Function allowing option customization. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AuthenticationBuilder` | The current [AuthenticationBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.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](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.authenticationbuilder). |
| `authenticationScheme` | `string` The name of this authentication scheme. |
| `displayName` | `string` The display name of this authentication scheme. |
| `configureOptions` | `ActionMicrosoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions` Function allowing option customization. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AuthenticationBuilder` | The current [AuthenticationBuilder](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.authentication.authenticationbuilder). |