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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.