generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new test vector * update test vector
- Loading branch information
1 parent
1e498f3
commit 7c61753
Showing
4 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# `VC JWT` Test Vectors | ||
|
||
This directory contains test vectors for the vc jwt functionality | ||
[JWT](https://datatracker.ietf.org/doc/html/rfc7519). | ||
|
||
## `verify` | ||
|
||
Verify test vectors are detailed in a [JSON file](./verify.json). | ||
|
||
### Input | ||
|
||
The `input` for the sign operation is an object with the following properties: | ||
|
||
| Property | Description | | ||
| -------- | -------------------------------------------------------------------- | | ||
| `jwt` | A JSON Web Token JWT object representing the jwt to verify. | | ||
|
||
### Output | ||
|
||
The `output` for the verify operation should not exist, it throws an error or it does not. To test validity of error can check the error message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"description":"vc jwt decode", | ||
"vectors":[ | ||
{ | ||
"description":"fail to decode jwt", | ||
"input":"doodoo", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Verification failed: Malformed JWT", | ||
"web5-kt":"JWT decoding failure" | ||
} | ||
}, | ||
{ | ||
"description":"no claims", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKamNuWWlPaUpGWkRJMU5URTVJaXdpYTNSNUlqb2lUMHRRSWl3aWVDSTZJbE5SVG5CMVprSXlSSFpYTW5OQk5EbFJWVlJMUkcwM2IzVkVRbTlWUldKNllrZzVOR1JXU0RseVYxa2lMQ0pyYVdRaU9pSjNVRWhMZEdFMlNIQlVja0pvZVRORlRXeHVSM05sZVdsNVdIcHhhMU01VldScWFrNVVZVTk2WmpZNElpd2lZV3huSWpvaVJXUkVVMEVpZlEjMCJ9.e30.U6oA2wKv20RL3yhO81AuMtNqZ3-Ak9zMkoS-r52zYTJa_udzdUiI753ljU86RCmy1mLMVYLQX2wwgZ8XwqWEDQ", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Jwt payload missing vc property", | ||
"web5-kt":"JWT contains no claims" | ||
} | ||
}, | ||
{ | ||
"description":"no vc claim", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKamNuWWlPaUpGWkRJMU5URTVJaXdpYTNSNUlqb2lUMHRRSWl3aWVDSTZJa0ZqYlZneWVGWldaV1pUVVZFNVMxVmFUR2hUVms4dGVqWjZjWGxXWjBaUFJqRlVNM1pMT1cxT1dqUWlMQ0pyYVdRaU9pSnlkRk5RU0ZaSWFXTnBiMnhtY0c0MmRIaDVWemx1YjJKRGNVNTVWMnhWYTBWV0xWODFabEl3V1dwQklpd2lZV3huSWpvaVJXUkVVMEVpZlEjMCJ9.eyJoZWhlIjoiaGkifQ.RODqHX31e0yP2BEqhnBy8qr7u-7-ryCM4qCBHDiy5e3bDxM5RctLDAX93fZAZd0VZko4HTvgTiab99SOKBU8CQ", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Jwt payload missing vc property", | ||
"web5-kt":"The vc claim is missing" | ||
} | ||
}, | ||
{ | ||
"description":"vc claim wrong type", | ||
"input":"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbTVUVHpOalMydFJkelpCWWs5dGEyazNZa1ZPYVZGeVRXc3lkVE0xT0hSSGQxcHFaRFpSTm5CeVUyOGlmUSMwIiwidHlwIjoiSldUIn0.eyJleHAiOjM2MDEyOTM0MzEsImlzcyI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbTVUVHpOalMydFJkelpCWWs5dGEyazNZa1ZPYVZGeVRXc3lkVE0xT0hSSGQxcHFaRFpSTm5CeVUyOGlmUSIsImp0aSI6ImFiY2QxMjMiLCJuYmYiOjE3MDkxMzM0MzEsInN1YiI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJa1JIUm1KRWVVVXpZalJHYUZwNVpXNWtlV3h2TTBwbWRsUnVaMkZWV0Y5b1ltWm9lR2szV1RSNmJYY2lmUSIsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIl0sInR5cGUiOm51bGwsImlzc3VlciI6IiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImZpcnN0TmFtZSI6IlJhbmR5IiwibGFzdE5hbWUiOiJNY1JhbmRvIn0sImlzc3VhbmNlRGF0ZSI6IiJ9fQ.yrvOZc58oFqEXpMs6rk4E0QDLv28gjjunNFSafx0yV6tmn0nYO2btJnawPusrTcHt0tTjxB5SMUEyo6m7kWsAw", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"type is missing default", | ||
"web5-kt":"Incorrect type for vc claim" | ||
} | ||
}, | ||
{ | ||
"description":"legit", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa3MyMjNwUVd5TTc5ZGVkTEtYdkJLQ3RKUUJWQzdXdDFzeXVtOHlxZmV1THd6I3o2TWtzMjIzcFFXeU03OWRlZExLWHZCS0N0SlFCVkM3V3Qxc3l1bTh5cWZldUx3eiJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiVEJEZXZlbG9wZXJDcmVkZW50aWFsIl0sImlkIjoidXJuOnV1aWQ6Njk1OGYwM2ItZjhiNy00OGM2LTkxYjUtODQ4YjIyZTMyMDBhIiwiaXNzdWVyIjoiZGlkOmtleTp6Nk1rczIyM3BRV3lNNzlkZWRMS1h2QktDdEpRQlZDN1d0MXN5dW04eXFmZXVMd3oiLCJpc3N1YW5jZURhdGUiOiIyMDI0LTAyLTI4VDE3OjUyOjM4WiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmtleTp6Nk1rczIyM3BRV3lNNzlkZWRMS1h2QktDdEpRQlZDN1d0MXN5dW04eXFmZXVMd3oiLCJ1c2VybmFtZSI6Im5pdHJvIn19LCJuYmYiOjE3MDkxNDI3NTgsImp0aSI6InVybjp1dWlkOjY5NThmMDNiLWY4YjctNDhjNi05MWI1LTg0OGIyMmUzMjAwYSIsImlzcyI6ImRpZDprZXk6ejZNa3MyMjNwUVd5TTc5ZGVkTEtYdkJLQ3RKUUJWQzdXdDFzeXVtOHlxZmV1THd6Iiwic3ViIjoiZGlkOmtleTp6Nk1rczIyM3BRV3lNNzlkZWRMS1h2QktDdEpRQlZDN1d0MXN5dW04eXFmZXVMd3oiLCJpYXQiOjE3MDkxNDI3NTh9.KiUUJ77TKjIIDmeeqh34m-xiIPozNna58qI68a5oVlEENJQS3C3xvSyoJVtGmJBcvtmaVD7VB6V9sMFZxBC6BQ", | ||
"errors":false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"description":"vc jwt verify", | ||
"vectors":[ | ||
{ | ||
"description":"no typ header", | ||
"input":"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJa1JXZDFwWmFWY3lTalZETkc1cmQyRkdRV0pKVUY5MlIzTnJTamhKT1VKRk5IcE9RVGgxUkdZMVZsVWlmUSMwIn0.eyJleHAiOjI2NTUyMTM3MDQsImlzcyI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJa1JXZDFwWmFWY3lTalZETkc1cmQyRkdRV0pKVUY5MlIzTnJTamhKT1VKRk5IcE9RVGgxUkdZMVZsVWlmUSIsImp0aSI6ImFiY2QxMjMiLCJuYmYiOjE3MDkxMzM3MDQsInN1YiI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbWRpZVhwcGNuTmthekpOVW14WVV5MWtURkU0TkZWbVRrRlZjbUp5T0hZd2FESkViblZVTUdSV1kxRWlmUSIsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiZmlyc3ROYW1lIjoiUmFuZHkiLCJsYXN0TmFtZSI6Ik1jUmFuZG8ifSwiaXNzdWFuY2VEYXRlIjoiIn19.7trsEIJxKlQhvCH3F-w4ZTessbGaCG6X_6di8sl3qTRdEk8QFyv7xvFSFXBcX4XC6i_DfWndlhj1cdEtL9B1CA", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Verification failed: Expected JWT header to contain typ property set to JWT", | ||
"web5-go":"no typ header" | ||
} | ||
}, | ||
{ | ||
"description":"invalid typ header", | ||
"input":"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbmxXTFhvMGNqZGlNMmRtZEV0U016ZEpNR3N3VVhsSk0yZHBTa0Z3ZFhsU1FtMXpZVXBSWjI0eWVUUWlmUSMwIiwidHlwIjoiS2FrYW1pbWkifQ.eyJleHAiOjI2NTUyMTM3ODMsImlzcyI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbmxXTFhvMGNqZGlNMmRtZEV0U016ZEpNR3N3VVhsSk0yZHBTa0Z3ZFhsU1FtMXpZVXBSWjI0eWVUUWlmUSIsImp0aSI6ImFiY2QxMjMiLCJuYmYiOjE3MDkxMzM3ODMsInN1YiI6ImRpZDpqd2s6ZXlKcmRIa2lPaUpQUzFBaUxDSmpjbllpT2lKRlpESTFOVEU1SWl3aWVDSTZJbmRuTTFGUVJsSmplUzAxVXpaNlNqZEVWMmx4U0Vwd1RHTlJaRmhVVWsxWk1td3hhRTEyWm1reFVXTWlmUSIsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiXSwiaXNzdWVyIjoiIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiZmlyc3ROYW1lIjoiUmFuZHkiLCJsYXN0TmFtZSI6Ik1jUmFuZG8ifSwiaXNzdWFuY2VEYXRlIjoiIn19.fE58Vtqg5-oOQKvRCiJHCspZaqmGOtEIlUTf8TqWpviWGndpZWj1XofcUfcNFLWTHnk6H-2ku9FA7x_t4ymgAA", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Verification failed: Expected JWT header to contain typ property set to JWT", | ||
"web5-go":"invalid typ header" | ||
} | ||
}, | ||
{ | ||
"description":"empty issuer", | ||
"input":"eyJ0eXA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Y5NzgyMTc2M30.DRPjURxt0OCzOeXd9NZx--y_5AGQ3dzX0dspN-oFbreiytLZkmnHz6C2qUfaZV6QG7dzk15NQQhZZ8zZqSYeAg", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Verification failed: nbf claim is in the future", | ||
"web5-go":"issuance date in future" | ||
} | ||
}, | ||
{ | ||
"description":"no context", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa3RKTFpKU2JVeW5hY2gyZzR6em5LM1plVlZEZDlMc1Q1cWpCcm9tZ0M0TkdFI3o2TWt0SkxaSlNiVXluYWNoMmc0enpuSzNaZVZWRGQ5THNUNXFqQnJvbWdDNE5HRSJ9.eyJ2YyI6eyJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiVEJEZXZlbG9wZXJDcmVkZW50aWFsIl0sImlkIjoidXJuOnV1aWQ6MDVlYzg3MGQtMDYzOC00ZjdjLTlkMGMtMmM1ODJiNzM4NzlkIiwiaXNzdWVyIjoiZGlkOmtleTp6Nk1rdEpMWkpTYlV5bmFjaDJnNHp6bkszWmVWVkRkOUxzVDVxakJyb21nQzROR0UiLCJpc3N1YW5jZURhdGUiOiIyMDI0LTAyLTI5VDE4OjM5OjMzWiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmtleTp6Nk1rbkFGWkt1aG8yTkhTYTN1MTNqZGRZdDdpQTdFc2FaakxINFBhS3FuR1BVcHYiLCJ1c2VybmFtZSI6Im5pdHJvIn19LCJuYmYiOjE3MDkyMzE5NzMsImp0aSI6InVybjp1dWlkOjA1ZWM4NzBkLTA2MzgtNGY3Yy05ZDBjLTJjNTgyYjczODc5ZCIsImlzcyI6ImRpZDprZXk6ejZNa3RKTFpKU2JVeW5hY2gyZzR6em5LM1plVlZEZDlMc1Q1cWpCcm9tZ0M0TkdFIiwic3ViIjoiZGlkOmtleTp6Nk1rbkFGWkt1aG8yTkhTYTN1MTNqZGRZdDdpQTdFc2FaakxINFBhS3FuR1BVcHYiLCJpYXQiOjE3MDkyMzE5NzMsImV4cCI6MjY5NzgyMTc2M30.uegrsxyLsteVNX4Adjbsrya-IDiSMYTDQYXnBs0tbidbirKip_IYodCU__atyuJxdq6APtGiaY1hzoy38MHlAA", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"@context is missing default context", | ||
"web5-go":"no context" | ||
} | ||
}, | ||
{ | ||
"description":"missing base context", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa3VqYVdBdFpxSk5pdnFzaWpNMVNaaWRZQkdLazI4ZFVaRW5BbnNzVDdoaDdhI3o2TWt1amFXQXRacUpOaXZxc2lqTTFTWmlkWUJHS2syOGRVWkVuQW5zc1Q3aGg3YSJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJ3cm9uZy1jb250ZXh0Il0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJUQkRldmVsb3BlckNyZWRlbnRpYWwiXSwiaWQiOiJ1cm46dXVpZDpiMWRiMTQwMC00YTE2LTQwN2QtOGMxOC02MWNlODUwZTQzMDciLCJpc3N1ZXIiOiJkaWQ6a2V5Ono2TWt1amFXQXRacUpOaXZxc2lqTTFTWmlkWUJHS2syOGRVWkVuQW5zc1Q3aGg3YSIsImlzc3VhbmNlRGF0ZSI6IjIwMjQtMDItMjlUMTg6Mzk6MDdaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJkaWQ6a2V5Ono2TWtvUkVnczVIbXk1Nmo3cDhZb0J1RlhFUzJaZXB4a2JpQWExUGRDUURvQjE3aCIsInVzZXJuYW1lIjoibml0cm8ifX0sIm5iZiI6MTcwOTIzMTk0NywianRpIjoidXJuOnV1aWQ6YjFkYjE0MDAtNGExNi00MDdkLThjMTgtNjFjZTg1MGU0MzA3IiwiaXNzIjoiZGlkOmtleTp6Nk1rdWphV0F0WnFKTml2cXNpak0xU1ppZFlCR0trMjhkVVpFbkFuc3NUN2hoN2EiLCJzdWIiOiJkaWQ6a2V5Ono2TWtvUkVnczVIbXk1Nmo3cDhZb0J1RlhFUzJaZXB4a2JpQWExUGRDUURvQjE3aCIsImlhdCI6MTcwOTIzMTk0NywiZXhwIjoyNjk3ODIxNzYzfQ.kDbWpA-lEw8vyNmN_6EOq5QQGN3aDnnoWA6KvaOdcoZsusZCvPwWtf03WkXSDq4hv-g0AxBafwG19gsToTLXAg", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"@context is missing default context", | ||
"web5-go":"missing base context" | ||
} | ||
}, | ||
{ | ||
"description":"no type", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa2tmS0M2Z0RGdE5MR21KTlNkc2ZEQmdHdjUyekdkYmRCMk1GcVVvcXZ3ZjRqI3o2TWtrZktDNmdERnROTEdtSk5TZHNmREJnR3Y1MnpHZGJkQjJNRnFVb3F2d2Y0aiJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJpZCI6InVybjp1dWlkOjg1NmJiNGQ2LTEwODItNGFmNS05MmQ4LWFiMjgyYmRkNmY0ZiIsImlzc3VlciI6ImRpZDprZXk6ejZNa2tmS0M2Z0RGdE5MR21KTlNkc2ZEQmdHdjUyekdkYmRCMk1GcVVvcXZ3ZjRqIiwiaXNzdWFuY2VEYXRlIjoiMjAyNC0wMi0yOVQxODozODozMVoiLCJjcmVkZW50aWFsU3ViamVjdCI6eyJpZCI6ImRpZDprZXk6ejZNa3Z5dzNZc1poaVlFSjdna293NHJWYXB3V1VrNVFCVUNMTjFwR1prWVZHZjdKIiwidXNlcm5hbWUiOiJuaXRybyJ9fSwibmJmIjoxNzA5MjMxOTExLCJqdGkiOiJ1cm46dXVpZDo4NTZiYjRkNi0xMDgyLTRhZjUtOTJkOC1hYjI4MmJkZDZmNGYiLCJpc3MiOiJkaWQ6a2V5Ono2TWtrZktDNmdERnROTEdtSk5TZHNmREJnR3Y1MnpHZGJkQjJNRnFVb3F2d2Y0aiIsInN1YiI6ImRpZDprZXk6ejZNa3Z5dzNZc1poaVlFSjdna293NHJWYXB3V1VrNVFCVUNMTjFwR1prWVZHZjdKIiwiaWF0IjoxNzA5MjMxOTExLCJleHAiOjI2OTc4MjE3NjN9.w5knx7h_kVoMZCyp5rXQ141MzbZ6Dt4Q_QofHfmN-zRnACnWAw3L2t9zs8w0d-igBagZaSM29UUNS6d_W4J7BQ", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"type is missing default", | ||
"web5-go":"no type" | ||
} | ||
}, | ||
{ | ||
"description":"missing base type", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa20zYVlNam52VUhXRDliVnplUFk2VFJuM1lpQmV6NWJNQWE0OVR1dk5udGQ0I3o2TWttM2FZTWpudlVIV0Q5YlZ6ZVBZNlRSbjNZaUJlejViTUFhNDlUdXZObnRkNCJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlRCRGV2ZWxvcGVyQ3JlZGVudGlhbCJdLCJpZCI6InVybjp1dWlkOmVlNjQ4MmY0LTAxOTMtNDIzZC1hODIzLTVmZTU5MjQxMThmZCIsImlzc3VlciI6ImRpZDprZXk6ejZNa20zYVlNam52VUhXRDliVnplUFk2VFJuM1lpQmV6NWJNQWE0OVR1dk5udGQ0IiwiaXNzdWFuY2VEYXRlIjoiMjAyNC0wMi0yOVQxODozNzo0M1oiLCJjcmVkZW50aWFsU3ViamVjdCI6eyJpZCI6ImRpZDprZXk6ejZNa21GMnlVdmF6NWRHdFM5d1g5YzQya1o5ZlFpTlpkTXQ5azNIVUs3WGloS3hhIiwidXNlcm5hbWUiOiJuaXRybyJ9fSwibmJmIjoxNzA5MjMxODYzLCJqdGkiOiJ1cm46dXVpZDplZTY0ODJmNC0wMTkzLTQyM2QtYTgyMy01ZmU1OTI0MTE4ZmQiLCJpc3MiOiJkaWQ6a2V5Ono2TWttM2FZTWpudlVIV0Q5YlZ6ZVBZNlRSbjNZaUJlejViTUFhNDlUdXZObnRkNCIsInN1YiI6ImRpZDprZXk6ejZNa21GMnlVdmF6NWRHdFM5d1g5YzQya1o5ZlFpTlpkTXQ5azNIVUs3WGloS3hhIiwiaWF0IjoxNzA5MjMxODYzLCJleHAiOjI2OTc4MjE3NjN9.FutMFx9sCEJWTIXAqwkEpoZ5mMtH6VdkQ0TQ75UJlF-Yz3EVE_wU0sxXyrQwNkyOOu5BCAjGCwKrtAY3b3DqDg", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"type is missing default", | ||
"web5-go":"missing base type" | ||
} | ||
}, | ||
{ | ||
"description":"jti does not match id", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa2Y4YjFSVTdhajM5dFozSnVCUXQ3QTJxdDY2NWRFNGdpbktyUTVuaFhOeTVEI3o2TWtmOGIxUlU3YWozOXRaM0p1QlF0N0EycXQ2NjVkRTRnaW5LclE1bmhYTnk1RCJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiVEJEZXZlbG9wZXJDcmVkZW50aWFsIl0sImlkIjoidXJuOnV1aWQ6MzhmODI2N2ItZGIxMC00ZmRjLTlkNzAtZGNmYTU2ZDFlZGQwIiwiaXNzdWVyIjoiZGlkOmtleTp6Nk1rZjhiMVJVN2FqMzl0WjNKdUJRdDdBMnF0NjY1ZEU0Z2luS3JRNW5oWE55NUQiLCJpc3N1YW5jZURhdGUiOiIyMDI0LTAyLTI5VDE4OjA4OjM1WiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmtleTp6Nk1rbnpHcEhINkU5U3N5ZG9YbVJHb2ljVFZlOUpzZVo3c21KeloxVXhrQW5QTnciLCJ1c2VybmFtZSI6Im5pdHJvIn19LCJuYmYiOjE3MDkyMzAxMTUsImp0aSI6InVybjp1dWlkOm90aGVyLWlkIiwiaXNzIjoiZGlkOmtleTp6Nk1rZjhiMVJVN2FqMzl0WjNKdUJRdDdBMnF0NjY1ZEU0Z2luS3JRNW5oWE55NUQiLCJzdWIiOiJkaWQ6a2V5Ono2TWtuekdwSEg2RTlTc3lkb1htUkdvaWNUVmU5SnNlWjdzbUp6WjFVeGtBblBOdyJ9.QmOD0QKiszYgda6mE73YDBVX9CIat1OBS10f3p24ao34-ml08tiiFPNQGMdHM3zUMN7Ya3ZdLu9Ytosx9advAA", | ||
"errors":true, | ||
"errorMessage":{ | ||
"web5-js":"Verification failed: jti claim does not match id", | ||
"web5-go":"missing base type" | ||
} | ||
}, | ||
{ | ||
"description":"valid jwt", | ||
"input":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa21rWnhpQlp4ZEN3S3RjRDFobnBLdllvdThIcFY4SjJ4MUwxeTlIZUduUEpKI3o2TWtta1p4aUJaeGRDd0t0Y0QxaG5wS3ZZb3U4SHBWOEoyeDFMMXk5SGVHblBKSiJ9.eyJ2YyI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlZlcmlmaWFibGVDcmVkZW50aWFsIiwiVEJEZXZlbG9wZXJDcmVkZW50aWFsIl0sImlkIjoidXJuOnV1aWQ6MmZjZjRkMzQtZTc5Ny00MWJlLWFiZTctYTAxZGY5MjgzNzQ4IiwiaXNzdWVyIjoiZGlkOmtleTp6Nk1rbWtaeGlCWnhkQ3dLdGNEMWhucEt2WW91OEhwVjhKMngxTDF5OUhlR25QSkoiLCJpc3N1YW5jZURhdGUiOiIyMDI0LTAyLTI5VDE4OjE2OjE0WiIsImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImlkIjoiZGlkOmtleTp6Nk1rdXFHVDI5Q0x0WXdlZWZyTmVVOFk4cnZ6bXBpTWk3d3AyTWlCQW9SQmtiZmsiLCJ1c2VybmFtZSI6Im5pdHJvIn19LCJuYmYiOjE3MDkyMzA1NzQsImp0aSI6InVybjp1dWlkOjJmY2Y0ZDM0LWU3OTctNDFiZS1hYmU3LWEwMWRmOTI4Mzc0OCIsImlzcyI6ImRpZDprZXk6ejZNa21rWnhpQlp4ZEN3S3RjRDFobnBLdllvdThIcFY4SjJ4MUwxeTlIZUduUEpKIiwic3ViIjoiZGlkOmtleTp6Nk1rdXFHVDI5Q0x0WXdlZWZyTmVVOFk4cnZ6bXBpTWk3d3AyTWlCQW9SQmtiZmsiLCJpYXQiOjE3MDkyMzA1NzQsImV4cCI6MjY5NzgyMTc2M30.fKHojEqulH8uHXxNuXzn-CtwIjjFHg-wGoH9TcCDebLfZrzVoOGVRouWXZogMxWhHIPcYXY5gyGpzJ6cbYEXBQ", | ||
"errors":false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters