From 44052a621a3adc35df1a4f3d820d70a6c7220587 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Tue, 29 Oct 2024 10:37:47 -0400 Subject: [PATCH] Exploring while I can Signed-off-by: Alex Snaps --- tests/v1beta3/authconfig.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/v1beta3/authconfig.yaml b/tests/v1beta3/authconfig.yaml index 2c7e4430..509b93fe 100644 --- a/tests/v1beta3/authconfig.yaml +++ b/tests/v1beta3/authconfig.yaml @@ -39,7 +39,7 @@ spec: roles: expression: auth.identity.realm_access.roles username: - expression: auth.identity["preferred_username"] + expression: "has(auth.identity.preferred_username) ? auth.identity.preferred_username : 'unknown'" oauth2-introspection: oauth2Introspection: credentialsRef: @@ -55,7 +55,7 @@ spec: roles: expression: auth.identity.realm_access.roles username: - expression: auth.identity["preferred_username"] + expression: "has(auth.identity.preferred_username) ? auth.identity.preferred_username : 'unknown'" cache: key: expression: request.headers["authorization"]