Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

[OID4VCI] Attribute did should be added to user profile just if OID4VCI is enabled for the realm #46297

@mposolda

Description

@mposolda

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

oid4vc

Describe the bug

Right now, when Keycloak is started with oid4vc-vci feature enabled, the attribute did is automatically added to user profile.

It should be added just in case that switch Verifiable credentials is also enabled for the realm (together with the oid4vc-vci feature).

User profile feature has nice support for this to dynamically add specified attribute based on something enabled/disabled for the realm. For example attribute Locale is also dynamically added to user's profiles just when the "Localization" is enabled for the realm.

Moreover, the attribute is not translated in the admin console - see screenshot (but I see it is properly translated in the account console):

Image

Version

nightly (from 2026-02-12)

Regression

  • The issue is a regression

Expected behavior

Attribute did added to user profile just if feature oid4vc-vci is enabled and also realm switch Verifiable credentials is enabled

Actual behavior

Attribute did added to user profile always when just oid4vc-vci is enabled. Attribute not translated in the admin console.

How to Reproduce?

  • Start keycloak with ./kc.sh start-dev --features=oid4vc-vci
  • Login to admin console and go to the user profile of user admin (Assumption that Verified credentials is disabled for the realm)

Anything else?

It is regression caused by c08ed20f

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions