Skip to main content
May 9, 2024
Question

Ways to decode a JWT

  • May 9, 2024
  • 2 replies
  • 0 views

Hi all, 

I have seen that the decodeJWT function of JWT Tools plug-in returns the decoded token but only if the signature is valid, otherwise it returns null. This function needs jwks url to retrieve the proper public key and validate the given token. 

Does anyone know if there is a way to decode a JWT without validating the signature? It is possible to decode a JWT with a private key stored in scs? Is there any other plug-in to create and validate JWTs?

Thanks in advance. 

    2 replies

    stefanhelzle0001
    May 9, 2024

    I think that the whole point of a JWT validation is, that you first validate the signature using the public key. If you can't do that any further process is pointless.

    May 14, 2024

    The client has told us that the tokens will arrive encrypted to Appian, so the first thing we have to do is decrypt them with a private key stored in scs (I don't know if the Encryption Functions plug-in will help us) and then validate the signature with the public key stored in jwks (we can do this with the decodeJWT function of JWT Tools plug-in).