Skip to content

Commit

Permalink
Merge pull request #68 from halflumi/jwk
Browse files Browse the repository at this point in the history
Change public key in JWT payload to use the JWK format
  • Loading branch information
kmonsen authored Aug 29, 2024
2 parents 9293c86 + d17a1ce commit cc19bc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Cookie: whatever_cookies_apply_to_this_request=value;
Sec-Session-Response: registration JWT
```
The JWT is signed with the newly created private key, and needs to contain the following values:
The JWT is signed with the newly created private key, and needs to contain the following values (the public key is in the [JWK](https://datatracker.ietf.org/doc/html/rfc7517) format):
```json
// Header
{
Expand All @@ -155,7 +155,10 @@ The JWT is signed with the newly created private key, and needs to contain the f
"aud": "URL of this request",
"jti": "nonce",
"iat": "timestamp",
"key": "public key",
"key": {
"kty": "key type",
"<kty-specific parameters>": "<value>",
},
"authorization": "<authorization_value>", // optional, only if set in registration header
}
```
Expand Down

0 comments on commit cc19bc7

Please sign in to comment.