Devise::OmniAuth::GoogleOauth2
Inherits Devise::OmniAuth::Strategy < Reference < Object
google_oauth2 strategy — authorize URL, token exchange and userinfo/AuthHash building, 1:1 with omniauth-google-oauth2 1.1.1. Endpoints are properties so specs (and tests against a stub provider) can redirect them.
Constants
Constructors
Class methods
Instance methods
The AuthHash assembled from a token response + raw_info (oracle: g_hash_verified, g_hash_unverified_email, g_hash_no_name, g_hash_uid_sub): uid = sub, email only when email_verified, prune of nil/empty values.
Full callback phase: code → token → userinfo → AuthHash.
authorize_params + authorize_url. Mirrors the strategy defaults: response_type=code, access_type=offline unless given, 48-hex state (SecureRandom.hex(24)) unless given (oracle: g_access_type_default, g_state_in_session, g_authorize_url_full).
POST /token (authorization_code grant), like OAuth2::Client auth_code.get_token.