Skip to contents

Use your Google app registration with oauth_client() to add Google sign-in. The helper configures OIDC validation and profile retrieval.

Usage

oauth_provider_google(name = "google")

Arguments

name

Optional provider name (default "google")

Value

OAuthProvider object for use with a Google OAuth 2.0 app

Details

You can register a new Google OAuth 2.0 app in the Google Cloud Console. Configure the client ID & secret in your OAuthClient.

This preset uses a restricted Google OIDC profile: ID tokens must have iss = "https://accounts.google.com", matching Google's discovery issuer. Google's ID token validation guidance also permits "accounts.google.com"; this alternate issuer is not accepted by this preset. Issuer comparison remains exact, as for other OIDC providers.

Examples

oauth_provider_google()
#> <shinyOAuth::OAuthProvider>
#>  @ name               : chr "google"
#>  @ auth_url           : chr "https://accounts.google.com/"
#>  @ token_url          : chr "https://oauth2.googleapis.com/"
#>  @ issuer             : chr "https://accounts.google.com/"
#>  @ userinfo_url       : chr "https://openidconnect.googleapis.com/"
#>  @ jwks_uri           : NA
#>  @ introspection_url  : NA
#>  @ revocation_url     : chr "https://oauth2.googleapis.com/"
#>  @ token_auth_style   : chr "header"
#>  @ use_pkce           : logi TRUE
#>  @ use_nonce          : logi TRUE
#>  @ extra_auth_params  : list [1] ("access_type")
#>  @ extra_token_params : list()
#>  @ extra_token_headers: list()