8000 Tags · AloysJehwin/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

nightly

Toggle nightly's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Admin v2: Mask client secrets for view-only users (keycloak#52731)

* Admin v2: Mask client secrets for view-only users

When a user lacks manage permission on a client, strip client secrets
from GET /clients/{client} and GET /clients responses to match v1 behavior.

Closes keycloak#52197

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

# Conflicts:
#	rest/admin-v2/services/src/main/java/org/keycloak/services/client/DefaultClientService.java

* Refactor getClientListSecretMaskedForViewOnly test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

* Fix: test scope

 fixes an unclosed Stream in the authorization test by wrapping it
 in try-with-resources, matching the pattern used in tests.

 Fixes: keycloak#52197

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>

* moving the fix to the new client resource type

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Shatrughan Rai <polyglot.dev@outlook.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>

26.7.4

Toggle 26.7.4's commit message
Set version to 26.7.4

26.6.7

Toggle 26.6.7's commit message
Set version to 26.6.7

Signed-off-by: stianst <stianst@gmail.com>

26.4.16

Toggle 26.4.16's commit message
Set version to 26.4.16

Signed-off-by: stianst <stianst@gmail.com>

26.7.3

Toggle 26.7.3's commit message
Set version to 26.7.3

26.7.2

Toggle 26.7.2's commit message
Set version to 26.7.2

26.6.6

Toggle 26.6.6's commit message
Set version to 26.6.6

Signed-off-by: stianst <stianst@gmail.com>

26.4.15

Toggle 26.4.15's commit message
Set version to 26.4.15

Signed-off-by: stianst <stianst@gmail.com>

26.7.1

Toggle 26.7.1's commit message
Set version to 26.7.1

26.6.5

Set version to 26.6.5

Signed-off-by: stianst <stianst@gmail.com>
0