apigee / apigee-access

The "apigee-extensions" module for Node.js, which lets Node.js apps access Apigee-specific information
MIT License
6 stars 3 forks source link

Support update of outh token attributes #2

Open jansinger opened 9 years ago

jansinger commented 9 years ago

While most of the available oauth2 policies are covered, updating the attributes of a token ist not yet possible through apigee-access. Is there a plan to support this operation in near future? See also http://apigee.com/docs/api-services/reference/set-oauth-v2-info-policy

theganyo commented 9 years ago

There is no updating the token after creation. However, if you specify attributes when you create the token, they will be created as a part of the token. You just specify "attributes" in the opts - as a hash (js object) of key/value strings.

jansinger commented 9 years ago

That is what I already know and do - I just want to update the attributes (not the token itself) as it is supported by the "Set OAuth V2 Info Policy"! So it is just making the Oauth-Methods complete...

theganyo commented 9 years ago

Gotcha. I believe that most likely this will require a change on Edge in the internal javascript support library, but I'm not sure.