[management] Revoke local Dex session on embedded IdP password change (#7556)

This commit is contained in:
Bethuel Mmbaga
2026-09-24 21:21:55 +03:00
committed by GitHub
parent 222c6d53e2
commit ad7598a7d7
+4
View File
@@ -737,6 +737,10 @@ func (p *Provider) UpdateUserPassword(ctx context.Context, userID string, oldPas
return fmt.Errorf("failed to update password: %w", err)
}
if err := p.storage.DeleteAuthSession(ctx, user.UserID, server.LocalConnector); err != nil && !errors.Is(err, storage.ErrNotFound) {
p.logger.Error("failed to revoke local session after password change", "error", err)
}
return nil
}