Login SSO Azure - JWS Decode error

HI!

I'm having issues with the "JWS Decode" feature. I'm trying to enable Microsoft SSO login in my app. The process seems to work correctly until it reaches the JWS Decode step. I will describe the process I'm following to see if there’s an issue in any part of the process.

I'm making a request to the Microsoft token API with the code provided after the user logs in, and it returns the access_token perfectly. With it, I perform a split to extract the token header and save the kid in a variable.

Next, I make a request to the key API. With the result, I loop through to find the key that matches the kid.

Once I find the correct key, I extract the x5c and assemble the key for JWS Decode. Finally, I try to send the access_token and the key to JWS Decode, but without success.

I've already tried several things, modified the key format multiple times, and nothing works. Can anyone help?

5 replies