I receive a JWE (encrypted JWT token) from our IDP server with the API request for authorisation. I need to decrypt the JWE token, verify the signature validity and validate the claims/scopes from the JWE token. I would like to implement the above steps in a lua plugin in my kong instance and have been looking for any modules or libraries that has some implementation using lua code.
I am aware of the JWT kong plugin, is it possible to use the JWT parser to decrypt and decode the JWE token?
Is there any module or plugin available that can achieve JWE token handling?