Created
September 6, 2017 13:58
-
-
Save yum45f/ea57af4024c682d036b46805da345702 to your computer and use it in GitHub Desktop.
Ruby Sinatra を使ってGoogle認証をする(下調べ)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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