-
Hello, apache can output user logged in with basic auth with %u in LogFormat:
here %u is displaying ([sub]@[iss]) Is there a way to display others info from JWT token (mail, roles)? thx |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
you should be able to reference the environment variables set by mod_auth_openidc by using e.g. |
Beta Was this translation helpful? Give feedback.
-
On 26/11/22 02:00, bodtx wrote:
Hello, apache can output user logged in with basic auth with %u in
LogFormat:
|LogFormat "%h %l %t %u \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\"" userLog|
here %u is not working
Is there a way to display the connected user or show some info from
JWT token (mail, roles)?
(BTW I have no PHP mode enabled)
I have the following in my config, and I get the username logged in %u:
OIDCRemoteUserClaim preferred_username
Hamish
|
Beta Was this translation helpful? Give feedback.
-
Thank you indeed with where XXX is any key from id token, I cans log whatever I want. |
Beta Was this translation helpful? Give feedback.
you should be able to reference the environment variables set by mod_auth_openidc by using e.g.
%{OIDC_CLAIM_email}e