Signed and encrypted messages
Signing and encrypting ID tokens, UserInfo responses and requests, and choosing which messages need it.
Start with Choosing which messages to protect
- Choosing which messages to protectDecide which OpenID Connect messages to sign, encrypt, or both, by asking who reads each one along the way and who needs to verify it afterwards.
- Signing and encryptionPublish an encryption key, register signing and encryption algorithms, and read a nested JWT: a signed UserInfo response encrypted with JWE, part by part.
- Key selection and validation failuresOpen a signed and encrypted message with the right keys in the right order, reject algorithm mismatches, rotate encryption keys safely, and fail without giving clues.