Skip to content

Commit

Permalink
oidc: add standard references to IDTokenClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlemmer committed Mar 6, 2023
1 parent 54eae92 commit 4b7db85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/oidc/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func (a *AccessTokenClaims) UnmarshalJSON(data []byte) error {
return unmarshalJSONMulti(data, (*atcAlias)(a), &a.Claims)
}

// IDTokenClaims extends TokenClaims by further implementing
// OpenID Connect Core 1.0, sections 3.1.3.6 (Code flow),
// 3.2.2.10 (implicit), 3.3.2.11 (Hybrid) and 5.1 (UserInfo).
// https://openid.net/specs/openid-connect-core-1_0.html#toc
type IDTokenClaims struct {
TokenClaims
NotBefore Time `json:"nbf,omitempty"`
Expand Down

0 comments on commit 4b7db85

Please sign in to comment.