Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation request: PASETO (JWT alternative) #1771

Open
HeCorr opened this issue Apr 3, 2024 · 0 comments
Open

Operation request: PASETO (JWT alternative) #1771

HeCorr opened this issue Apr 3, 2024 · 0 comments

Comments

@HeCorr
Copy link

HeCorr commented Apr 3, 2024

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:

image

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant