bshaffer/oauth2-server-php-docs

JWT Access Token Payload

1leader opened this issue · 2 comments

I would like to know if it is possible to add additional data to JWT Access Token Payload? For example we would like to include a user's role type in the JWT Access Token Payload. Thanks in advance!

Are you speaking particularly to JwtAccessTokens? If so, I think subclassing the createAccessToken function would be the most straightforward way.

Thanks so much this really helped!

Regards,

Javier Alvarez, Broker
Xcellence Realty, Inc
866-595-6025 x 210

On Thu, Sep 24, 2015 at 2:18 PM, Brent Shaffer notifications@github.com
wrote:

Are you speaking particularly to JwtAccessTokens? If so, I think
subclassing the createAccessToken
https://github.com/bshaffer/oauth2-server-php/blob/develop/src/OAuth2/ResponseType/JwtAccessToken.php#L60
function would be the most straightforward way.


Reply to this email directly or view it on GitHub
#70 (comment)
.