personium / personium-core

Core module of Personium
https://personium.io
Apache License 2.0
88 stars 16 forks source link

External Cell retrieval API should support auto-conversion of "personium-localunit" #376

Open dixonsiu opened 5 years ago

dixonsiu commented 5 years ago

Issue

When registering an external Cell using the keyword "personium-localunit", Personium Unit saves the data internal as is. Therefore, it will fail when executing the Cell retrieval API using the following parameter.
https://example-cell.demo.personium.io/

Only works with the following parameter.
personium-localunit:/example-cell/

shimono commented 5 years ago

We should instead ExtCell registration API and support auto-conversion, and make OData interface read-only. By doing so, we can both

  1. Avoid having ExtCell entry with https://... full FQDN data pointing to localunit
  2. Comply with OData Spec