Skip to content

Well-known URI building rules #682

@danielfett

Description

@danielfett

VCI currently has the following text:

The Credential Issuer's configuration can be retrieved using the Credential Issuer Identifier.Credential Issuers publishing metadata MUST make a JSON document available at the path formed by inserting the string /.well-known/openid-credential-issuer into the Credential Issuer Identifier between the host component and the path component, if any.

For example, the metadata for the Credential Issuer Identifier https://issuer.example.com/tenant would be retrieved from https://issuer.example.com/.well-known/openid-credential-issuer/tenant. The metadata for the Credential Issuer Identifier https://tenant.issuer.example.com would be retrieved from https://tenant.issuer.example.com/.well-known/openid-credential-issuer.

Practically, https://tenant.issuer.example.com is the same as https://tenant.issuer.example.com/. Following the text in the first paragraph, the metadata for the URL with the trailing slash should reside at https://tenant.issuer.example.com/.well-known/openid-credential-issuer/ (note the trailing slash) and not at https://tenant.issuer.example.com/.well-known/openid-credential-issuer (without the trailing slash).

Since it is very common to omit the trailing slash in URLs without paths, I think that one of the following choices should be made by VCI:

  1. allow both forms for cases where the issuer URL does not contain a path component (https://example.com and https://example.com/), or
  2. RECOMMEND to use and accept the trail-less well-known URL in such cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions