Secrets: Add inline secure value can reference method (#108965)

This commit is contained in:
Matheus Macabu
2025-07-31 16:42:40 +02:00
committed by GitHub
parent d2c008c96e
commit cfb5f5601f
4 changed files with 480 additions and 1 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func (u *StaticRequester) GetExtra() map[string][]string {
}
result := map[string][]string{}
if u.AccessTokenClaims.Rest.ServiceIdentity != "" {
if u.AccessTokenClaims != nil && u.AccessTokenClaims.Rest.ServiceIdentity != "" {
result[authnlib.ServiceIdentityKey] = []string{u.AccessTokenClaims.Rest.ServiceIdentity}
}
return result