Y = Base64URLEncode(Header) + ‘.’ + Base64URLEncode(Payload)
JWT = Y + ‘.’ + Base64URLEncode(HMACSHA256(Y))
The steps called out here should work on a Mac as well. The only thing that might be different is the
sed
command used below. Instead of using-E
, you will have to use-r
to runsed
with extended regular expression support