Replies: 1 comment 1 reply
-
in the interest of (backwards) compatibility, could it be an option to add an override switch for the key, i.e. you could then use In any event, this would be a topic for upstream EDC. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Within EDC the
"cid"
field from the JWT in the authCode of the EDR payload is meant to be the contractId.When generating an JWT using a custom generator, the field
"cid"
is reserved to the entity that the JWT was issued for and cannot be used to hold the contractId furthermore.This causes the contractId retrieval to crash as the given value is not equal to the expected contractId.
Additionally, there is currently extra effort to get the contractId out of the token. The JWT needs to be unwrapped and decoded first to get the contractId out of it.
We placed the information under an additional attributes section for our token, which differs from the EDC implementation and is therefore not a working solution.
Proposed Solution
The proposed solution would be to move the
"contractId"
one level up, next to the authcode into the header. This would avoid conflicts with other uses/interpretations for the field and reduce the extra token unwrapping effort.Example
Current state when using a custom token generator:
Current EDC state:
Beta Was this translation helpful? Give feedback.
All reactions