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.