Skip to content

Commit

Permalink
fix: reset jti and hash ID token claims on refresh (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar authored Oct 28, 2020
1 parent 1fcb789 commit ce2de73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handler/openid/flow_refresh_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ func (c *OpenIDConnectRefreshHandler) HandleTokenEndpointRequest(ctx context.Con
// We need to reset the expires at value
sess.IDTokenClaims().ExpiresAt = time.Time{}
sess.IDTokenClaims().Nonce = ""
sess.IDTokenClaims().JTI = ""
sess.IDTokenClaims().AccessTokenHash = ""
sess.IDTokenClaims().CodeHash = ""
return nil
}

Expand Down

0 comments on commit ce2de73

Please sign in to comment.