-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
ruby -e 'require "base64"; p Base64.decode64("eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImEtaGVhZGVyIjoiaGVhZGVyLXZhbHVlIiwiandrIjp7ImUiOiJBUUFCIiwia3R5IjoiUlNBIiwibiI6IjJKRHNVS0lOY3FERnUwTi1icGl3Mk9nbEtRM0U2NGZOdHJlQlZudXJRaWxjUURwMzJHY2pSSnBiZlllNXo3dGEteTgzOXJ1S0tFWU15VWRDNm5uc0QySS1DSF9pTnRjSlFwNFlYR3c4V0NVMFlSNTBRN2dGZjZyckt3Rl9SUHllN2ZISDdEUU50aXN0TEViLUpnUU8yQkJ2RHdWQU16dnRQdC11MFA1enNUQkN1OTQxU2JIWFBQTjB6SUZneUF6M3Y3OG5EWFIzVkRyVTEwcFpxMUdvV3hpemtoWUM5c3VtNmFYdDBxMm9ROWJhcEUtY0l2TmVRRlY2RmkxUnVid0ZDSzRWYXFoMThLcUtCOTNZa2JpQ0o1SERXQlJoaTZqTUdSaTF5VEJ1aVdCeU1teGwtSXpUb2dCdlBSb1dnR3Y4TlA5SDNvVFhWOVpOb3hUaTVZRGVHdyJ9fQ")'
output (invalid json, bc outermost closing brace is missing):
"{\"typ\":\"JWT\",\"alg\":\"RS256\",\"a-header\":\"header-value\",\"jwk\":{\"e\":\"AQAB\",\"kty\":\"RSA\",\"n\":\"2JDsUKINcqDFu0N-bpiw2OglKQ3E64fNtreBVnurQilcQDp32GcjRJpbfYe5z7ta-y839ruKKEYMyUdC6nnsD2I-CH_iNtcJQp4YXGw8WCU0YR50Q7gFf6rrKwF_RPye7fHH7DQNtistLEb-JgQO2BBvDwVAMzvtPt-u0P5zsTBCu941SbHXPPN0zIFgyAz3v78nDXR3VDrU10pZq1GoWxizkhYC9sum6aXt0q2oQ9bapE-cIvNeQFV6Fi1RubwFCK4Vaqh18KqKB93YkbiCJ5HDWBRhi6jMGRi1yTBuiWByMmxl-IzTogBvPRoWgGv8NP9H3oTXV9ZNoxTi5YDeGw\"}"