Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Decode JWT token in OIC

edited Aug 5, 2020 4:29AM in Integration 4 comments

Content

Hi Experts,

Is there any way to decode JWT token in OIC. I tried the Javascript way but not working. Independently it's working. I uploaded the supported atob function but Integration is not getting activated. Can you help is there any other alternate to decode it.

function parseJwt (token) {
var base64Url = token.split('.')[1];
    var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
 
    var jsonPayload = decodeURIComponent(window.atob(base64).split('').map(function(c) {
        return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
    }).join(''));
    return jsonPayload;
}
 
atob.js
 
function atob(input) {
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!