Skip to content

[OID4VCI] Make key_attestations_required configurable in Admin Console - #51261

Merged
mposolda merged 1 commit into
keycloak:mainfrom
adorsys:issue-51179
Jul 31, 2026
Merged

[OID4VCI] Make key_attestations_required configurable in Admin Console#51261
mposolda merged 1 commit into
keycloak:mainfrom
adorsys:issue-51179

Conversation

@forkimenjeckayang

Copy link
Copy Markdown
Contributor

This adds Admin Console support for configuring vc.key_attestations_required on OID4VCI credential client scopes.

The OID4VCI client-scope form now supports:

  • Enabling required key attestations
  • Configuring key storage resistance levels
  • Configuring user authentication resistance levels
  • Persisting and restoring these settings

Integration coverage was added to verify that:

  • key_attestations_required is included in issuer metadata under proof_types_supported
  • Credential issuance is rejected with invalid_proof when key attestation is required but missing
  • Admin Console values persist after saving and reloading the client scope

Closes #51179

Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Admin Console configuration and integration coverage for OID4VCI key-attestation requirements.

Changes:

  • Adds key-attestation controls and persistence.
  • Adds issuer metadata and missing-attestation enforcement tests.
  • Introduces a dedicated key-attestation credential scope fixture.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/base/src/test/java/org/keycloak/tests/oid4vc/OID4VCJWTIssuerEndpointTest.java Tests rejection when required attestation is missing.
tests/base/src/test/java/org/keycloak/tests/oid4vc/OID4VCIssuerWellKnownProviderTest.java Verifies key-attestation metadata.
tests/base/src/test/java/org/keycloak/tests/oid4vc/OID4VCIssuerTestBase.java Adds the configured test scope.
js/apps/admin-ui/test/client-scope/oid4vci-client-scope.spec.ts Tests UI persistence.
js/apps/admin-ui/src/client-scopes/details/ScopeForm.tsx Adds configuration controls.
js/apps/admin-ui/src/client-scopes/details/oid4vciAttributes.ts Registers attributes for cleanup.
js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties Adds labels and help text.

@mposolda mposolda self-assigned this Jul 31, 2026

@mposolda mposolda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@forkimenjeckayang Thanks for your PR! I found some inconsistencies in well-known metadata and IMO would be good to doublecheck test coverage a bit more with integration test, but I think this might be handled in a follow-up issues. I will create them once this is merged.

@mposolda
mposolda merged commit 7b00e85 into keycloak:main Jul 31, 2026
91 checks passed
@mposolda

Copy link
Copy Markdown
Contributor

@forkimenjeckayang FYI. Created follow-ups #51347 , #51348 and #51349 .

I hope all of them are just minor polishing and more automated tests coverage (hopefully not new major changes needed in the codebase)

@forkimenjeckayang

Copy link
Copy Markdown
Contributor Author

@forkimenjeckayang FYI. Created follow-ups #51347 , #51348 and #51349 .

I hope all of them are just minor polishing and more automated tests coverage (hopefully not new major changes needed in the codebase)

Thank you @mposolda
I'll take a look at them.

alehhu pushed a commit to alehhu/keycloak that referenced this pull request Aug 8, 2026
…ak#51261)

Closes keycloak#51179

Signed-off-by: forkimenjeckayang <forkimenjeckayang@gmail.com>
Signed-off-by: alehhu <159355663+alehhu@users.noreply.github.com>
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.

[OID4VCI] Make sure that key_attestation_required is configurable from admin console UI

3 participants