Welcome! Log In Create A New Profile

Advanced

Need to log username from jwt token coming in Authorization header

Our API request uses jwt token for Authorization. So it is coming in Authorization header as bearer token. When it reaches to nginx, I want to decode that token and put username in the nginx log_format. Is there any support available so nginx logging will print username as well who did the request?

Would be great for any help.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready