From 8ef13d77e72deb8f2d1e82565ff485c562619df8 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Thu, 9 Feb 2023 07:27:39 +0100 Subject: [PATCH] fix(actions): check for nil pointer on set claims in access_token (#5172) --- internal/api/oidc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/oidc/client.go b/internal/api/oidc/client.go index a7f0e9b67e..2654e68323 100644 --- a/internal/api/oidc/client.go +++ b/internal/api/oidc/client.go @@ -541,7 +541,7 @@ func (o *OPStorage) privateClaimsFlows(ctx context.Context, userID string, claim actions.SetFields("claims", actions.SetFields("setClaim", func(key string, value interface{}) { if _, ok := claims[key]; !ok { - claims[key] = value + claims = appendClaim(claims, key, value) return } claimLogs = append(claimLogs, fmt.Sprintf("key %q already exists", key))