node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

Allow response override

Open thomseddon opened this issue 11 years ago • 2 comments

This would also replace the continueAfterResponse

thomseddon avatar Oct 15 '14 13:10 thomseddon

For those interested in how to do this, the source code is here: https://github.com/oauthjs/node-oauth2-server/blob/52cb49eea17a298708dbe17d71851df86ad9a020/lib/models/token-model.js#L46-L54

Just pass, allowExtendedTokenAttributes: true, as an option in the server constructor and any additional properties will populate.

njj avatar Mar 07 '17 18:03 njj

Any idea how to add custom fields to a response body of a token endpoint? Details: https://github.com/oauthjs/express-oauth-server/issues/67 Source code: https://github.com/nanachimi/oauthserverjs

nanachimi avatar Apr 03 '18 19:04 nanachimi