Skip to content

Commit

Permalink
Combine sub and iss for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardOrthopy committed Apr 17, 2024
1 parent 3a7e28a commit 4fd52f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ private String issueIdToken(String audience, String nonce, IdTokenJWS federatedI
new JWTClaimsSet.Builder()
.issuer(issuer.toString())
.audience(audience)
.subject(federatedIdToken.body().sub()) // propagate original `sub`
.subject(
federatedIdToken.body().sub()
+ "-"
+ federatedIdToken.body().iss()) // in accordance with requirement A_23035
.issueTime(Date.from(now))
.expirationTime(Date.from(now.plus(Duration.ofHours(8))));

Expand Down

0 comments on commit 4fd52f0

Please sign in to comment.