Assent v0.1.2 Assent.Strategy.Google View Source

Google OAuth 2.0 strategy.

In the normalized user response a google_hd ("Hosted Domain") field is included in user parameters and can be used to limit access to users belonging to a particular hosted domain.

Usage

config = [
  client_id: "REPLACE_WITH_CLIENT_ID",
  client_secret: "REPLACE_WITH_CLIENT_SECRET"
]