Skip to content

Commit 6f1a33a

Browse files
committed
fixup! docs: document the JWT bearer authorization grant
1 parent 7cab4f7 commit 6f1a33a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/api/grant-types/jwt-bearer-grant-type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ refresh token is issued (RFC 7521 §5.2).</p>
1616
<li><code>getJWTBearerIssuer(issuer)</code> → <code>{ audience, jwks | jwksUri | secret }</code> (or
1717
falsy for an untrusted issuer) — the verification key material and the
1818
expected <code>aud</code>.</li>
19-
<li><code>getJWTBearerUser({ issuer, subject, client, scope, jti, exp })</code> → the
19+
<li><code>getJWTBearerUser({ issuer, subject, client, scope, jti, assertionId, exp })</code> → the
2020
authorized user (or falsy to deny). Replay (<code>jti</code>) can be enforced here.</li>
2121
</ul>
2222
</dd>
@@ -48,7 +48,7 @@ The model must implement:
4848
- `getJWTBearerIssuer(issuer)``{ audience, jwks | jwksUri | secret }` (or
4949
falsy for an untrusted issuer) — the verification key material and the
5050
expected `aud`.
51-
- `getJWTBearerUser({ issuer, subject, client, scope, jti, exp })` → the
51+
- `getJWTBearerUser({ issuer, subject, client, scope, jti, assertionId, exp })` → the
5252
authorized user (or falsy to deny). Replay (`jti`) can be enforced here.
5353

5454
**Kind**: global class

docs/guide/grant-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ POST /oauth/token
8282
Content-Type: application/x-www-form-urlencoded
8383
8484
grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
85-
&assertion=eyJhbGciOiJSUzI1Niİ...
85+
&assertion=eyJhbGciOiJSUzI1Ni...
8686
&client_id=client-1
8787
&scope=read
8888
```

0 commit comments

Comments
 (0)