Skip to content

Custom JWT payload #750

@kpn13

Description

@kpn13

Hi,

Thank you for this lib, it has save me a lot of time by now !

I'm facing a problem to custom the payload of a JWT. I think I have to override \OAuth2\ResponseType\JwtAccessToken, but I didn't find a way.

I gave my own implementation of JwtAccessToken in my Server.php in responseType field but it didn't work.

I think the problem could be createDefaultJwtAccessTokenResponseType() in OAuth2\Server.php return a default instance of JwtAccessToken without check if there is a custom JwtAccessToken in the responseTypes array. Are you agree with thas or am I totally wrong ?

Could you help me with that please ?

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions