intridea/oauth2 — Issue #91: AccessToken initialize casts access_token to String...but for yammer api it would need to be hash
Author: az-azza
Created: 2012-02-23 23:27:28+00:00
State: open

Im working with Yammer API and noticed that when AccessToken is intialized access_token parameter is removed from hash and its content is cast to String and stored under token attribute...with yammer api it kinda breaks access_token request result since it does contain a number of pairs of parameters and values like so:

"access_token": {
"view_subscriptions": true,
"expires_at": null,....
"token": "ajsdfiasd7f6asdf8o",
}

so by casting to s im no longer able to retrieve ie token value like it would be possible if access_token content was hashed..

Whats the reasoning behind this functionality..could it be yammer api unusual way of formating access_token response and its discrepancy with OAuth2 guidelines?

Is there any other way to access raw access_token value from the get_token request?