Skip to content

Instantly share code, notes, and snippets.

@yum45f
Created September 6, 2017 13:58
Show Gist options
  • Save yum45f/ea57af4024c682d036b46805da345702 to your computer and use it in GitHub Desktop.
Save yum45f/ea57af4024c682d036b46805da345702 to your computer and use it in GitHub Desktop.
Ruby Sinatra を使ってGoogle認証をする(下調べ)
use OmniAuth::Builder do
provider :twitter, 'consumerkey', 'consumersecret'
end
post '/auth/:provider/callback' do
@auth = request.env["omniauth.auth"]
erb :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment