-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for a mixed base64 and base64url encoding? #7
Comments
Did some digging:
We could consider a |
I don't think there's a real usecase for Also, on a completely different note, why does |
Within the JOSE family of specifications, only url-safe base64 (aka A mixed decoding is however very useful to cope with non-standard compliant JOSE producers. Usually it's easy enough to reach out to a small vendor to have them fix their implementation or dismiss the problem as non-conform. Unfortunately though, a very widely known and used cloud IaaS provider stubbornly refuses to fix their JOSE-producing implementation and so JOSE verification libraries need to cope with their implementation which 1) uses the url safe base64 alphabet (62 and 63) but 2) unfortunately includes a padding 😠. |
Elsewhere, @bakkot says that apparently Node.js's
Buffer.from(x, "base64")
, as well as CSP, support mixing base64 and base64 URL in the same string, when decoding. That might be an encoding worth supporting as well.Cross-linking to tc39/proposal-arraybuffer-base64#7 (comment) for related analysis.
Originally posted by @domenic in #6 (comment)
The text was updated successfully, but these errors were encountered: