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

Extend "personium-localunit:" url scheme and support it. #284

Closed
SawamiWataru opened this issue Dec 13, 2018 · 0 comments
Closed

Extend "personium-localunit:" url scheme and support it. #284

SawamiWataru opened this issue Dec 13, 2018 · 0 comments
Assignees
Milestone

Comments

@SawamiWataru
Copy link
Contributor

SawamiWataru commented Dec 13, 2018

URL Scheme "personium-localunit"

URL scheme, "personium-localunit" was originally introduced to allow users to use relative URL from unit root so that the following two URL are to be interpreted as identical.

personium-localunit:{/path/}
{UnitRootURL}{/path/}

This worked well for path-based Cell URL and users can write the URL of a certain Cell without explicitly writing out UNIT FQDN which may change upon domain name change events.

Further consideration needed for per-Cell FQDN setting

From 1.7.x, Personium now urges users to use per-Cell FQDN style. Using the above URL scheme, however, the new per-Cell FQDN style Cell URL can not be written in a "relative" manner. So we need to introduce new mechanism to provide ways to write Cell URL without explicitly writing out Unit Root URL.

Extension of the scheme.

By extending the current "personium-localunit" URL scheme to allow a new syntax using two colons, the above goal can be achieved.

Single colon

This syntax remains the same as the existing spec.

relative URL interepretation note
personium-localunit:/__ctl https://unit.example/_ctl
personium-localunit:/cellname/ https://unit.example/cellname/
personium-localunit:cellname/ https://unit.example/cellname/
personium-localunit:cellname https://unit.example/cellname

Two colons

Newly introduced syntax, writing cell name after the first colon, followed by another colon and the cell-local path allows users to write any URL on another cell on the same unit in a relative manner.

relative URL interepretation note
personium-localunit:cellname: https://cellname.unit.example
personium-localunit:cellname:/ https://cellname.unit.example/
personium-localunit:cellname:/box/some/path https://cellname.unit.example/box/some/path

Implementations required

Util function to interpret the newly introduced syntax of this URL scheme

Issuing TransCell Token

URL specified in the "p_target" parameter should interpret new syntax at TokenEndpoint

TransCell Token evaluation

@SawamiWataru SawamiWataru self-assigned this Dec 13, 2018
@shimono shimono added this to the 1.7.6 milestone Feb 19, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.6, 1.7.7, 1.7.8 Feb 25, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.8, 1.7.9 Mar 14, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.9, 1.7.10 Mar 28, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.10, 1.7.11 Apr 19, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.11, 1.7.12, 1.7.13 May 14, 2019
@SawamiWataru SawamiWataru removed their assignment May 28, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.13, 1.7.14, 1.7.15 May 30, 2019
@SawamiWataru SawamiWataru modified the milestones: 1.7.15, 1.7.16 Jun 17, 2019
@tochi-y tochi-y removed this from the 1.7.16 milestone Jul 11, 2019
@shimono shimono added this to the 1.7.17 milestone Jul 20, 2019
@shimono shimono changed the title Support "personium-localunit:cellname". Extend "personium-localunit:" url scheme and support it. Jul 21, 2019
shimono added a commit to shimono/personium-core that referenced this issue Jul 31, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants