We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be711be commit e9d852aCopy full SHA for e9d852a
jwt/jwt.go
@@ -128,14 +128,8 @@ func (js jwtSource) Token() (*oauth2.Token, error) {
128
129
// Handle audience per RFC 7519: single string or array of strings
130
if len(js.conf.Audiences) > 0 {
131
- // Use new Audiences field (takes precedence)
132
- if len(js.conf.Audiences) == 1 {
133
- // Single audience: use string per RFC 7519
134
- claimSet.Aud = js.conf.Audiences[0]
135
- } else {
136
- // Multiple audiences: use array per RFC 7519
137
- claimSet.Aud = js.conf.Audiences
138
- }
+ // Multiple audiences: use array per RFC 7519
+ claimSet.Aud = js.conf.Audiences
139
} else if aud := js.conf.Audience; aud != "" {
140
// Use legacy Audience field for backward compatibility
141
claimSet.Aud = aud
0 commit comments