Skip to content

Instantly share code, notes, and snippets.

@yum45f
Created September 6, 2017 14:03
Show Gist options
  • Save yum45f/b97dfc23284b9123f0966dfb4ae45905 to your computer and use it in GitHub Desktop.
Save yum45f/b97dfc23284b9123f0966dfb4ae45905 to your computer and use it in GitHub Desktop.
Ruby Sinatra を使ってGoogle認証をする(下調べ)
use OmniAuth::Builder do
provider :open_id, :name => 'admin',
:identifier => 'https://google.com/accounts/o8/site-xrds?hd=yourdomain.com',
:store => OpenID::Store::Filesystem.new('/tmp')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment