google

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package google is Sign in with Google for identity: OpenID Connect, with a nonce and PKCE.

auth := identity.MustNew(cfg.Auth, d,
	identity.Providers(google.New(cfg.Auth.Providers["google"])))

It reads, from auth.providers.google: client_id and client_secret (an OAuth client of the Google Cloud console), redirect_url (registered with that client: https://api.example.com/auth/google/callback), scopes (openid, email and profile by default), hosted_domain (accept only accounts of that Workspace domain) and endpoint (the issuer, https://accounts.google.com unless testing). It refuses team_id and key_id. The user's identity comes from the verified ID token, not from another API call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns the Google provider for pc. A configuration it refuses makes identity.New fail with the reason.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL