Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical use of the @domain as a resource #79

Open
1 of 2 tasks
gsvarovsky opened this issue Dec 21, 2021 · 0 comments
Open
1 of 2 tasks

Canonical use of the @domain as a resource #79

gsvarovsky opened this issue Dec 21, 2021 · 0 comments

Comments

@gsvarovsky
Copy link
Member

gsvarovsky commented Dec 21, 2021

The domain is a natural identity for a Subject with global properties, e.g. a security secret [2].

For some apps it may also be dereferenceable as a web resource [1].

At present in the Javascript engine the domain value is constrained to be a DNS domain name.

Suggested steps:

  • For DNS-style domain names (i.e. those matching the DNS name regex), the canonical Subject name for the domain global Subject should be http://${domain}/ – i.e. the root resource with the HTTP protocol. Update: implemented in Whole domain authorisation m-ld-js#85
  • In future, domain names should be derestricted to be any IRI. If a context @base is provided, the @domain is resolved against it. (Since a DNS domain name is not a valid IRI, point 1 continues to hold.)

[1] @gsvarovsky in #75 (comment)
[2] https://github.com/m-ld/m-ld-security-spec/blob/main/design/suac.md#ontology

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant