Initiate Google authentication requests
masterYou can initiate the authentication flow by navigating to the request path.
Basic request:
/auth/google (defaults to email scope).
Request with specific scopes:
/auth/google?scope=email%20profile
Advanced configuration via provider options:
You can configure default scopes and other parameters (like hd, prompt, access_type, and include_granted_scopes) in your application configuration.
# Configure advanced options in your config file
config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [
default_scope: "email profile plus.me",
hd: "example.com",
prompt: "select_account",
access_type: "offline",
include_granted_scopes: true
]}
]