Token Refactor Step 5: Improve Audience Handling #3747
Labels
breaking-change
Will require manual intervention for version update
core feature
dataspace-protocol
related to the dataspace protocol
dcp
enhancement
New feature or request
refactoring
Cleaning up code and dependencies
Feature Request
Currently, the
aud
claim of tokens is always derived from the remote message'scounterPartyAddress
property, which contains the DSP callback address, whichis obviously incorrect.
What the
aud
claim is supposed to contain will depend on the type ofIdentityService
: IATP may use a DID, OAuth2 may use a URL, etc. To accommodate that, theRemoteMessage
willget a
counterPartyId
field which is assigned by theIdentityService
implementation upon message egress and can be obtained from a priorContractNegotiation
orTransferProcess
.Which Areas Would Be Affected?
dsp protocol layers
Why Is the Feature Desired?
Use the correct audience depending on the
IdentityService
implSolution Proposal
RemoteMessage#getCounterPartyId()
TokenParameters
:The text was updated successfully, but these errors were encountered: