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

make signatures URL safe? #175

Open
garlick opened this issue Aug 21, 2023 · 0 comments
Open

make signatures URL safe? #175

garlick opened this issue Aug 21, 2023 · 0 comments

Comments

@garlick
Copy link
Member

garlick commented Aug 21, 2023

While reviewing RFC 7515, whose "JWS Compact Serialization" inspired our signature format, I noted that their format is "URL safe" meaning the base64 strings are modified to avoid characters that are not allowed in a URL.

https://datatracker.ietf.org/doc/html/rfc7515#appendix-C

I wonder if our signature format, which is a series of base64 strings separated by periods, should also be made URL safe so that J could be submitted directly as a URL query parameter in a RESTful interface? The above reference gives an algorithm for transformation of base64 to/from "base64url".

AFAICT it should be possible for sign_unwrap() to support both base64 and base64url for a transition period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant