Operation request: PASETO (JWT alternative)
HeCorr opened this issue · comments
Summary
Since JWT is supported I believe PASETO should be implemented as well due to it's superiority.
Here's a quick mock-up I made of what the ingredient card could look like:
Clicking the button would generate Asymmetric PASETO v4 keys and fill in the input fields, and if a private key is provided instead, the Public Key field would be updated accordingly (the field could be read-only).
Example Input
{
"id": "69ffd377-c7f1-4341-8411-efd4ce886e04",
"name": "John Doe",
"admin": true
}
Example Output
v4.public.eyJhZG1pbiI6dHJ1ZSwiaWQiOiI2OWZmZDM3Ny1jN2YxLTQzNDEtODQxMS1lZmQ0Y2U4ODZlMDQiLCJuYW1lIjoiSm9obiBEb2UiLCJvaC1teSI6IllvdSBhcmUgYSBjdXJpb3VzIGxpdHRsZSBmZWxsYSwgYXJlbid0IHlvdT8gOikifdblou-fqzv2wp4C_tlX2ipR19F0fz5xm3NlHSUHhbZv2MYDykRCqsxRsTbEA8hy8MzUTRGB6yQUac2hZlAvVg4