Skip to content

Commit 5250877

Browse files
committed
Update text.
1 parent 2e68a30 commit 5250877

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,13 @@ function getUserFromIdToken(req, idToken) {
481481

482482
The decoded json is return as shown:
483483

484+
```json
485+
{
486+
"alg": "HS256",
487+
"typ": "JWT"
488+
}
489+
```
490+
484491
```json
485492
{
486493
"organizations": [],
@@ -502,6 +509,18 @@ The decoded json is return as shown:
502509
}
503510
```
504511

512+
To decode the JWT yourself, you can paste the token into the [JWT Website](https://jwt.io/) - The signature used to sign the token is `59de900a973fa2e0` and can be pasted into the website to verify that the encoded identity came from Keyrock
513+
514+
515+
```text
516+
HMACSHA256(
517+
base64UrlEncode(header) + "." +
518+
base64UrlEncode(payload),
519+
59de900a973fa2e0
520+
)
521+
```
522+
523+
505524
### Authorization Code - Running the Example
506525

507526
It is possible to invoke the Authorization Code grant flow programmatically, by bringing up the page

0 commit comments

Comments
 (0)