-
Notifications
You must be signed in to change notification settings - Fork 414
Home
zquestz edited this page Sep 22, 2014
·
13 revisions
Get your API key at https://code.google.com/apis/console/
auth/google_oauth2
{
:provider => "google_oauth2",
:uid => "123456789",
:info => {
:name => "John Doe",
:email => "john@company_name.com",
:first_name => "John",
:last_name => "Doe",
:image => "https://lh3.googleusercontent.com/url/photo.jpg"
},
:credentials => {
:token => "token",
:refresh_token => "another_token",
:expires_at => 1354920555,
:expires => true
},
:extra => {
:raw_info => {
:id => "123456789",
:email => "[email protected]",
:email_verified => true,
:name => "John Doe",
:given_name => "John",
:family_name => "Doe",
:link => "https://plus.google.com/123456789",
:picture => "https://lh3.googleusercontent.com/url/photo.jpg",
:gender => "male",
:birthday => "0000-06-25",
:locale => "en",
:hd => "company_name.com"
}
}
}
- You don't need the https://www.googleapis.com/auth/ prefix.
- You provide a comma separated list, without spaces.
- You need to give userinfo.email to get the email.