Verify an encrypted JWT (JSON Web Encryption - JWE)

verifyEncryptedJWT(token, encryptOptions, config) → returns struct

This function requires Adobe ColdFusion 2023 and up.  Not supported on Lucee, etc.

Argument Reference

token string

An encrypted JWT

encryptOptions struct

The encryption uses the key information from the given struct

config struct

A struct with the following values:
- clockSkew : time in seconds to account for difference between the systems generating and processing the JWT
- returntype : plaintext/struct

Links more information about verifyEncryptedJWT

Sample code invoking the verifyEncryptedJWT function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub