Skip to content

Add support for credential_response_encryption in credential request#53

Closed
Ogenbertrand wants to merge 12 commits intomainfrom
issue-#39310
Closed

Add support for credential_response_encryption in credential request#53
Ogenbertrand wants to merge 12 commits intomainfrom
issue-#39310

Conversation

@Ogenbertrand
Copy link
Copy Markdown
Collaborator

This PR aims at supporting credential_response_encryption during the issuing of credentials request. If the Client requested an encrypted response by including the credential_response_encryption object in the request, the Credential Issuer MUST encode the information in the Credential Response as a JWT using the parameters from the credential_response_encryption object. If the Credential Response is encrypted, the media type of the response MUST be set to application/jwt. If encryption was requested in the Credential Request and the Credential Response is not encrypted, the Client SHOULD reject the Credential Response.

See: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-credential-request

@Ogenbertrand Ogenbertrand marked this pull request as draft June 12, 2025 15:04
@Ogenbertrand Ogenbertrand marked this pull request as ready for review June 12, 2025 15:05
@Ogenbertrand Ogenbertrand marked this pull request as draft June 12, 2025 15:31
@Ogenbertrand
Copy link
Copy Markdown
Collaborator Author

Ready to be reviewed.

Copy link
Copy Markdown
Collaborator

@IngridPuppet IngridPuppet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a few comments. Please could you check?

Copy link
Copy Markdown
Collaborator

@forkimenjeckayang forkimenjeckayang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments for you to check out

Comment thread services/src/main/java/org/keycloak/protocol/oid4vc/model/CredentialResponse.java Outdated
Comment thread services/src/main/java/org/keycloak/protocol/oid4vc/model/CredentialRequest.java Outdated
Copy link
Copy Markdown
Collaborator

@stephane-segning stephane-segning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing much relevant to add to what the other said. Keep these points in mind:

  • Strict input validation for all encryption parameters – no socks with sandals allowed.
  • Encryption must be clearly configurable and documented, simple enough for everyone to understand and use.
  • Log debugging info responsibly; sensitive data (keys, credentials) results in can be skipped or strip (like se***)

Copy link
Copy Markdown
Collaborator

@forkimenjeckayang forkimenjeckayang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor comments for you to revisit. Please check

Copy link
Copy Markdown
Collaborator

@stephane-segning stephane-segning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. one last change please:

Copy link
Copy Markdown
Collaborator

@IngridPuppet IngridPuppet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I acknowledge a great progress. Just a few more comments. Please, could you check?

@Ogenbertrand Ogenbertrand requested a review from IngridPuppet July 7, 2025 14:51
Copy link
Copy Markdown
Collaborator

@IngridPuppet IngridPuppet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Ogenbertrand and others added 9 commits July 10, 2025 18:13
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
… b4 defaulting to enc keys

Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
Signed-off-by: Ogenbertrand <ogenbertrand@gmail.com>
@IngridPuppet IngridPuppet force-pushed the main branch 2 times, most recently from bda0e2a to f99c912 Compare October 15, 2025 13:55
@Ogenbertrand Ogenbertrand deleted the issue-#39310 branch March 4, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants