Registry / auth / omniauth-google-oauth2

omniauth-google-oauth2

JSON →
library1.2.2rbrubygemsunverified

A Google OAuth2 strategy for OmniAuth that allows you to login to Google with your Ruby app.

gem install omniauth-google-oauth2
INSTALL
IMPORT
SIG · OMNIAUTH-GOOGLE-OA
O
omniauth-google-oauth2
authrubyv1.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OmniAuth::Strategies::GoogleOauth2
require 'omniauth-google-oauth2'

Set up Google OAuth2 authentication in a Rack app.

require 'omniauth-google-oauth2' use OmniAuth::Builder do provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'] end
Debug
Known issues
gotchaGoogle OAuth2 API changes may require updating client secrets and scopes.
fix
Ensure you use the latest gem version and verify your Google Cloud Console configuration.
affects: < 1.2.0
Upgrade
Version history
1.2.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
omniauth-google-oauth2 — gem install omniauth-google-oauth2 · libregistry