rainlab / user-plugin

Front-end user management.
Other
113 stars 154 forks source link

JWT claims and Algorithm/key control #523

Closed elisandroesp closed 1 year ago

elisandroesp commented 1 year ago

Hi!

We loved the new JWT implementation, although we saw a couple issues with the generated JWT claims:

This would expand its usage and give devs a lot more control.

Best regard, Elisandro

daftspunk commented 1 year ago

Thanks fo the suggestions @elisandroesp

Sub claim added in 827bdb793e9e7da86add94b5efaafd43a5f2b3cf Config added in ab09faadbb53d5e23d01f0b57acdca3aa61ae4f3

The refresh TTL should be sent as plaintext alongside the token response for the client to manage.

Feel free to test this on the dev-master branch.