Skip to content

Commit

Permalink
Add example on configuring the "sub" claim
Browse files Browse the repository at this point in the history
For some reason we were missing this...

Signed-off-by: Luís Cobucci <[email protected]>
  • Loading branch information
lcobucci committed Nov 4, 2023
1 parent 2f58ec3 commit 820ead6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/issuing-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ $token = $tokenBuilder
->issuedBy('http://example.com')
// Configures the audience (aud claim)
->permittedFor('http://example.org')
// Configures the subject of the token (sub claim)
->relatedTo('component1')
// Configures the id (jti claim)
->identifiedBy('4f1g23a12aa')
// Configures the time that the token was issue (iat claim)
Expand Down

0 comments on commit 820ead6

Please sign in to comment.