Forum Discussion
Rotem
Nimbostratus
Sep 08, 2019Decode base64 underscore not accepted
Hi , Im trying to decode based64 (JWT) using irule , on regular basis this works great .. but right now i found when there is an underscore "_" in payload the request breaks with the following err...
Stanislas_Piro2
Cumulonimbus
Sep 09, 2019can you try this and check logs...
the string map may replace - with + and _ with /
set header [string map {- + _ /} [getfield $finds "." 1]]
set payload[string map {- + _ /} [getfield $finds "." 2]]
log local0. "header : $header"
log local0. "payload : $payload"
set HBearer [b64decode $header]
set PBearer [b64decode $payload]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects