Base64url Encoding
Base64 encoding using the URL- and filename-safe character set
defined in Section 5 of RFC 4648 [RFC4648], with all trailing '='
characters omitted (as permitted by Section 3.2) and without the
inclusion of any line breaks, whitespace, or other additional
characters. Note that the base64url encoding of the empty octet
sequence is the empty string. (See Appendix C for notes on
implementing base64url encoding without padding.)
When using the mock to interact with a Go library the parsing fails:
The JWKS is as follows:
The
n
however uses a base-64 encoding with a trailing=
which is not allowed according to the spec, see: https://datatracker.ietf.org/doc/html/rfc7515#appendix-C: