feat: add user name to log data
This commit is contained in:
parent
8af1ace0d0
commit
8ac2527217
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ export async function expressAuthentication(
|
||||||
case "keycloak":
|
case "keycloak":
|
||||||
const authData = await keycloakAuth(request, scopes);
|
const authData = await keycloakAuth(request, scopes);
|
||||||
request.app.locals.logData.sessionId = authData.session_state;
|
request.app.locals.logData.sessionId = authData.session_state;
|
||||||
|
request.app.locals.logData.user = authData.preffered_username;
|
||||||
return authData;
|
return authData;
|
||||||
default:
|
default:
|
||||||
throw new HttpError(
|
throw new HttpError(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue