Subject: | Arbitrary parameters from get_access_token response are not available |
Hi,
The OAuth 2.0 specification allows the AccessToken Response to contain arbitrary parameters along with the access_token itself (http://tools.ietf.org/html/rfc6749#section-4.1.4).
And I know a few OAuth2 providers which pass userid or/and email in response to access_token request.
Unfortunately in the library the Net::OAuth2::Profile::WebServer->get_access_token() method returns a Net::OAuth2::AccessToken object which has only predefined attributes and doesn't preserve the originally passed set of parameters.
Do you think it would be good to fix it?
Regards,
Dmitry