I'm updating singpass v3 to v4 using php CI. API getPersonal return jwe has alg ECDH-ES+A256KW. I copy it jwe to demo project (use js) of singpass it can decrypt. I have the same encryption private key with demo project
I tried lib simpleJwt it throw error "Key not found or invalid" enter image description here. I'm trying lib web-token/jwt-framework but it throw Error: The algorithm "ECDH-ES+A256KW" is not supported.
The algorithm
ECDH-ES+A256KWis supported by theweb-token/suite. You have to install the associated packageweb-token/jwt-encryption-algorithm-ecdh-esand add an instance ofJose\Component\Encryption\Algorithm\KeyEncryption\ECDHESA256KWto the algorithm manager./!\ DISLAIMER : I am the author of the web-token/* suite and maintain the documentation.