-
How are we supposed to set the "sub" claim now? I have been stuck on this for too long. There appears to be no documentation about how I am supposed to set the "sub" claim in version FYI: I am using version I don't even want to look at the token size issue right now I just need to get to php8 with as minimal change as possible and this is the only thing stopping me right now. What I've done so far: I followed the upgrade documentation: https://lcobucci-jwt.readthedocs.io/en/stable/upgrading/#v3x-to-v4x Now, I replaced I use this and everything appears to work fine with v3.4. I no longer have deprecated usages so it appears we are all good. So next I upgrade to 4.0 and suddenly
I can't find any documentation about how to move forward I've been googling all day and I can't seem to find a way forward. If there is any documentation I've missed please point me to where it tells me how to set the "sub" claim. Ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, it's represented on the code sample here: https://lcobucci-jwt.readthedocs.io/en/stable/upgrading/#use-the-new-builder-api The subject claim represents what the token is related to, hence Feel free to send a PR if you have a suggestion to explain it clearer. |
Beta Was this translation helpful? Give feedback.
Hello, it's represented on the code sample here: https://lcobucci-jwt.readthedocs.io/en/stable/upgrading/#use-the-new-builder-api
The subject claim represents what the token is related to, hence
Builder#relatedTo()
.Feel free to send a PR if you have a suggestion to explain it clearer.