Last active
September 25, 2017 18:10
-
-
Save yum45f/3f612809cff6f9a98d253423fa933c36 to your computer and use it in GitHub Desktop.
Ruby Sinatra を使ってGoogle認証をする(実験編)
This file contains hidden or 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
{ | |
"provider" => "google_oauth2", | |
"uid" => "100000000000000000000", | |
"info" => { | |
"name" => "John Smith", | |
"email" => "[email protected]", | |
"first_name" => "John", | |
"last_name" => "Smith", | |
"image" => "https://lh4.googleusercontent.com/photo.jpg", | |
"urls" => { | |
"google" => "https://plus.google.com/+JohnSmith" | |
} | |
}, | |
"credentials" => { | |
"token" => "TOKEN", | |
"refresh_token" => "REFRESH_TOKEN", | |
"expires_at" => 1496120719, | |
"expires" => true | |
}, | |
"extra" => { | |
"id_token" => "ID_TOKEN", | |
"id_info" => { | |
"azp" => "APP_ID", | |
"aud" => "APP_ID", | |
"sub" => "100000000000000000000", | |
"email" => "[email protected]", | |
"email_verified" => true, | |
"at_hash" => "HK6E_P6Dh8Y93mRNtsDB1Q", | |
"iss" => "accounts.google.com", | |
"iat" => 1496117119, | |
"exp" => 1496120719 | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment