keycloak/keycloak

AdminEvents are showing ClientEntity IDs instead of Client IDs

Open

#32.113 geöffnet am 14. Aug. 2024

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (8.346 Forks)batch import
area/corehelp wantedkind/enhancementpriority/normalteam/core-clients

Repository-Metriken

Stars
 (34.398 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 19h) (384 gemergte PRs in 30 T)

Beschreibung

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

core

Describe the bug

Logged or saved admin events show the entity ID of the client performing the action instead of the client ID. This is inconsistent with normal user events which show the client ID (see screenshot).

Version

25.0.2, nightly

Regression

  • The issue is a regression

Expected behavior

Admin events show the client ID of the client performing an admin operation.

Actual behavior

Admin events show the client entity ID of the client performing an admin operation.

How to Reproduce?

  1. Start Keycloak logging all events to the console e.g. by supplying environment variable KC_SPI_EVENTS_LISTENER_JBOSS_LOGGING_SUCCESS_LEVEL=INFO
  2. Use the admin console to edit a user
  3. Observe the emitted log message, it will look similar to the one I attached.

Anything else?

No response

Contributor Guide