-
Notifications
You must be signed in to change notification settings - Fork 0
Returned resource
ℜodrigo Arĥimedeς ℳontegasppα ℭacilhας edited this page Nov 1, 2018
·
6 revisions
irb> request.env['omniauth.data']
{
"provider" => :nexaas_id,
"uid" => "311117c9-66fb-477b-b439-557b574b4c36",
"info" => {
"name" => {
"first" => "John",
"last" => "Doe"
},
"fullname" => "John Doe",
"email" => "[email protected]",
"emails" => ["[email protected]"],
"picture_url" => "https://sandbox.id.nexaas.com/images/avatar/311117c9-66fb-477b-b439-557b574b4c36?size=140"
},
"credentials" => {
"token" => "8bec02ee5be5fb37b8da77980ca9f9eb7ac98a73ba9e68dbd28964c4643c0de5",
"refresh_token" => "41544ce38a45822f00848171b911728badf353c3ffc317de3ac7a7621a9a9784",
"expires_at" => 1539277793,
"expires" => true
},
"extra" => {
"raw_info" => {
"id" => "311117c9-66fb-477b-b439-557b574b4c36",
"full_name" => "John Doe",
"first_name" => "John",
"last_name" => "Doe",
"nickname" => "johndoe",
"email" => "[email protected]",
"emails" => nil,
"birth" => "1970-01-01",
"gender" => "other",
"language" => "en",
"picture" => "https://sandbox.id.nexaas.com/images/avatar/311117c9-66fb-477b-b439-557b574b4c36?size=140",
"timezeone" => "Etc/UTC",
"country" => "GB",
"city" => "Greenwich",
"bio" => "Nobody important"
},
"legacy" => {
"api_token" => "d91879a422b7aaa09eb842384648faac24fb655e4bb417f5e6447c428e687177"
}
}
}
-
provider
: always:nexaas_id
-
uuid
: identity’s identifier -
info.id
: same asuuid
-
info.name.first
: identity’s first name -
info.name.last
: identity’s last name -
info.fullname
: identity’s full name -
info.email
: identity’s main e-mail -
info.emails
: list of identity’s all e-mails (needlist_emails: true
parameter) -
info.picture_url
: identity’s profile picture URL -
credentials.token
: access token -
credentials.refresh_token
: refresh token -
credentials.expires_at
: expiration date -
credentials.expires
: boolean telling whether the token should expire -
extra.raw_info
: the raw data from REST endpoint -
extra.legacy.api_token
: PW1 legacyapi_token