Skip to content

feat: permit 'token' claim on credential request to be generated by sts if configured - #1087

Merged
ndr-brt merged 2 commits into
mainfrom
1086-credential-request-token-claim
Sep 16, 2026
Merged

ndr-brt merged 2 commits into
mainfrom
1086-credential-request-token-claim

Conversation

@ndr-brt

@ndr-brt ndr-brt commented Sep 15, 2026

Copy link
Copy Markdown
Member

What this PR changes/adds

Adds a configuration setting for the CredentialRequestManager: edc.iam.credential.request.bearer.access.scope.
When it is set, during the credential request, a token is requested to the STS with the configured scope and included in the request token as token claim.

Why it does that

Briefly state why the change was necessary.

Further notes

  • extracted a configuration object as now the CredentialRequestManager has 2 configuration settings.

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #1086

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt
ndr-brt requested a review from a team as a code owner September 15, 2026 14:04
@ndr-brt ndr-brt added the enhancement New feature or request label Sep 15, 2026
@ndr-brt
ndr-brt force-pushed the 1086-credential-request-token-claim branch from 93d9b47 to 19ebb63 Compare September 15, 2026 14:20
@ndr-brt
ndr-brt force-pushed the 1086-credential-request-token-claim branch from 19ebb63 to 2d91fbf Compare September 15, 2026 15:02

@paullatzelsperger paullatzelsperger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fine for a workaround, but lets @Deprecated all the relevant places, so we can 🪓 it later

EXPIRATION_TIME, Instant.now().plus(5, ChronoUnit.MINUTES).toString())
)
.compose(siTokenClaims -> secureTokenService
.createToken(participantContextId, siTokenClaims, configuration.bearerAccessScope()));
@ndr-brt
ndr-brt merged commit a4663f4 into main Sep 16, 2026
17 checks passed
@ndr-brt
ndr-brt deleted the 1086-credential-request-token-claim branch September 16, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow the DCP token claim on the holder credential-request path to be enabled via configuration

4 participants