store actual appId not oidc clientId for log in events

This commit is contained in:
Johannes Zellner
2025-11-19 23:21:09 +01:00
parent b467b58ee7
commit 2b4f8ff00d

View File

@@ -467,7 +467,7 @@ async function interactionConfirm(req, res, next) {
const userAgent = req.headers['user-agent'] || '';
const auditSource = AuditSource.fromOidcRequest(req);
await eventlog.add(user.ghost ? eventlog.ACTION_USER_LOGIN_GHOST : eventlog.ACTION_USER_LOGIN, auditSource, { userId: user.id, user: users.removePrivateFields(user), appId: params.client_id });
await eventlog.add(user.ghost ? eventlog.ACTION_USER_LOGIN_GHOST : eventlog.ACTION_USER_LOGIN, auditSource, { userId: user.id, user: users.removePrivateFields(user), appId: client.appId || null });
await users.notifyLoginLocation(user, ip, userAgent, auditSource);
const result = { consent };