AnthonyDeroche / mod_authnz_jwt

An authentication module for Apache httpd using JSON Web Tokens
Other
79 stars 46 forks source link

[Feature] Add extra claim field #33

Closed LSChyi closed 3 years ago

LSChyi commented 5 years ago

Would it be possible to add extra claim field and value when issuing JWT token in configuration?

Like giving each user a role to specify its privilege.

AnthonyDeroche commented 5 years ago

There is such a feature for now. The simplest way to achieve that is to emit tokens from your app and use the module only for verifying purpose. You can also submit a PR if you are interested in having this in the module!