Remove any terminating / from the Credential Issuer Identifier when forming the Credential Issuer Metadata URL - #775
Remove any terminating / from the Credential Issuer Identifier when forming the Credential Issuer Metadata URL#775paulbastian wants to merge 5 commits into
/ from the Credential Issuer Identifier when forming the Credential Issuer Metadata URL#775Conversation
…entifier when forming the Credential Issuer Metadata URL
|
WG discussion:
|
There was a problem hiding this comment.
I believe we should apply the same rules the sub of the signed metadata?
That is currently described as
sub: REQUIRED. String matching the Credential Issuer Identifier
With this PR we are relaxing the matching rules for metadata retrieval, but are not doing the same for sub -> will likely cause mismatches in the validation.
This PR does not relax matching rules for, but fixes them by adding additional constraint. |
|
As discussed in the WG call, I added a recommendation that Credential Issuer Identifier SHOULD NOT terminate with |
The metadata is fetched for a Credential Issuer Identifier. With this PR, a provided Credential Issuer Identifier
We are basically just moving the problem 1 layer further down for signed metadata - the fix would be to mandate that Credential Issuer Identifier not having a trailing slash I guess, but I guess that would be a breaking change? |
If the Credential Issuer Identifier is https://issuer.example.com/ , why wouldn't the sub value as well be https://issuer.example.com/ ? I'm also in favor of fixing the Credential Issuer Identifier in the first place, but I don't understand the problem for the proposed text. |
We get Credential Issuer Identifier from whatever source (e.,g., a credential catalogue) and use it to resolve the issuer metadata to start an issuance process. With this PR we basically fix the metadata resolution to always work regardless of trailing slash, but for signed metadata it's imho somewhat likely that the sub == identifier match would still fail (for a trailing slash) --> I'd slightly modify that to not require strict string matching, but also allow removal of trailing slash for the matching. Not a super critical thing imho, but this whole PR is basically trying to make the metadata fetching logic a bit more robust and adding the same for the sub = identifier matching logic is probably a good idea so we don't fail on the next step after fetching. |
Closes #744
My observations while building this PR: