Add 0000-ayb-example-auth-list.md

This commit is contained in:
Sofía Aritz 2023-11-15 21:46:58 +00:00
parent e9040d3c3f
commit a4c05e6024

View file

@ -0,0 +1,32 @@
## Auth list
```json
{
"authentication_proof":
[
{
"type": "fermet",
"token": "ayb_fAy28Q4667q_4nTowidCyetNyYYtd2X2iA9ywFRLirrn9"
},
{
"type": "jwt",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzb2ZpYXJpdHoiLCJ0b2tlbiI6ImF5Yl9mQXkyOFE0NjY3cV80blRvd2lkQ3lldE55WVl0ZDJYMmlBOXl3RlJMaXJybjkiLCJ1c2VyIjp7ImRpc3BsYXlOYW1lIjoiU29mw61hIEFyaXR6IiwiZGF0YWJhc2VzIjpbImV4YW1wbGUxLnNxbGl0ZSIsImV4YW1wbGUyLnNxbGl0ZSJdfSwiaWF0IjoxNTE2MjM5MDIyfQ.bRnWgO849ljqtaUu_VNLdHSqqFA6P6KqTcDps6lADi0"
}
]
}
```
## Decoded JWT
The decoded payload of the example jwt:
```json
{
"sub": "sofiaritz",
"token": "ayb_fAy28Q4667q_4nTowidCyetNyYYtd2X2iA9ywFRLirrn9",
"user": {
"displayName": "Sofía Aritz",
"databases": ["example1.sqlite", "example2.sqlite"]
},
"iat": 1516239022
}
```