GoogleAppBuilderExtensions Class

Extension methods to add Google authentication capabilities to an HTTP application pipeline.

Namespace
Microsoft.AspNetCore.Builder
Assemblies
  • Microsoft.AspNetCore.Authentication.Google

Syntax

public class GoogleAppBuilderExtensions
class Microsoft.AspNetCore.Builder.GoogleAppBuilderExtensions

Methods

UseGoogleAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder)

Adds the Microsoft.AspNetCore.Authentication.Google.GoogleMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables Google authentication capabilities.

Arguments:app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder to add the middleware to.
Return type:Microsoft.AspNetCore.Builder.IApplicationBuilder
Returns:A reference to this instance after the operation has completed.
public static IApplicationBuilder UseGoogleAuthentication(this IApplicationBuilder app)
UseGoogleAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.GoogleOptions)

Adds the Microsoft.AspNetCore.Authentication.Google.GoogleMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables Google authentication capabilities.

Arguments:
Return type:

Microsoft.AspNetCore.Builder.IApplicationBuilder

Returns:

A reference to this instance after the operation has completed.

public static IApplicationBuilder UseGoogleAuthentication(this IApplicationBuilder app, GoogleOptions options)