Skip to content

Commit

Permalink
Add a comment about audience
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Nov 10, 2022
1 parent 8275e2c commit 3c55028
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ func (c *Client) OidcToken(jobId string, audience ...string) (*OidcToken, *Respo
case 1:
m = &oidcTokenRequest{Audience: audience[0]}
default:
// While the spec supports multiple audiences in an Id JWT, our API does
// not support issuing them.
// See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken.
return nil, nil, ErrAudienceTooLong
}

Expand Down

0 comments on commit 3c55028

Please sign in to comment.