TeslaGov / ngx-http-auth-jwt-module

Secure your NGINX locations with JWT
MIT License
317 stars 122 forks source link

Leveraging JWT Claims for Logging purpose #52

Closed Nitroboy closed 4 years ago

Nitroboy commented 5 years ago

Hi,

This may be a newbie question but does this module support JWT Claim retrieval from incoming request header as mentionned here ? : https://www.nginx.com/blog/authenticating-api-clients-jwt-nginx-plus/#auth_jwt You can see on the link above that some variables (such as $jwt_header_xxxx and $jwt_claim_xxxx) representing JWT header and payload fields are available and can be sent to the forwarded API server for request processing per user. The readme doesn't mention such variables. More generally, does this module offer the same functionalities as the one coming natively with NGINX Plus which is called "ngx_http_auth_jwt_module".

Thanks in advance for your help

fitzyjoe commented 4 years ago

@Nitroboy This module does not support the variables you mention above. This module is not the same or compatible with the native NGINX Plus module. This module was written from scratch. Thanks for your interest and sorry I took so long to respond. I did not have a need to do anything with this project for a couple of years, but I'm about to update it.