From 820ead6970a7e8fa46760226b12e74f2a397cd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Sat, 4 Nov 2023 20:16:29 +0100 Subject: [PATCH] Add example on configuring the "sub" claim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason we were missing this... Signed-off-by: Luís Cobucci --- docs/issuing-tokens.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/issuing-tokens.md b/docs/issuing-tokens.md index f85dd72a..e6700ce4 100644 --- a/docs/issuing-tokens.md +++ b/docs/issuing-tokens.md @@ -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)