You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configuration support to expose the podOwner in the rootContainer #1364
The Solid Spec allows to expose the Pod owner in the root container:
When a server wants to advertise the owner of a storage, the server MUST include the Link header with rel="http://www.w3.org/ns/solid/terms#owner" targeting the URI of the owner in the response of HTTP HEAD or GET requests targeting the root container.
Add support for a configuration + example how to expose this information.
We could implement this as a MetadataWriter, although that interface currently has no access to the incoming method so would do this for all methods instead of just GET/HEAD. Although that would not be such an issue. Or we could let the Get/HeadOperationHandler write the correct metadata, but then we would need some extra interfaces there so there is no direct link between those and the account management.
We probably don't want to enable this by default. So we could either have this as an optional config setting, or let users decide this for themselves when they create a pod and store that as a boolean in their account settings.
The moment you have accounts enabled this feature is also enabled. If you create a pod and go to your account page there should be an update button next to the pod name where you can change the owners and choose if they should be visible or not. If they are visible they will be exposed through the required link header. By default owners are not visible like that so you have to change it after creating a pod.
If you want the default to be that they are visible immediately after creating a pod you can add the following to your config:
Activity
jvherweg commentedon Jun 30, 2022
We could implement this as a
MetadataWriter, although that interface currently has no access to the incoming method so would do this for all methods instead of just GET/HEAD. Although that would not be such an issue. Or we could let the Get/HeadOperationHandler write the correct metadata, but then we would need some extra interfaces there so there is no direct link between those and the account management.We probably don't want to enable this by default. So we could either have this as an optional config setting, or let users decide this for themselves when they create a pod and store that as a boolean in their account settings.
jvherweg commentedon Oct 6, 2023
Done in #1677
phochste commentedon Oct 24, 2023
@joachimvh With version 7.. what is the configuration I need to get the functionality as described in this ticket?
jvherweg commentedon Oct 24, 2023
The moment you have accounts enabled this feature is also enabled. If you create a pod and go to your account page there should be an
updatebutton next to the pod name where you can change the owners and choose if they should be visible or not. If they are visible they will be exposed through the required link header. By default owners are not visible like that so you have to change it after creating a pod.If you want the default to be that they are visible immediately after creating a pod you can add the following to your config:
{ "@id": "urn:solid-server:default:PodStore", "@type": "BasePodStore", "visible": true }phochste commentedon Oct 24, 2023
Note to myself: Account page = http://localhost:3000/.account/login/
jvherweg commentedon Oct 24, 2023
Most default configs should have a document in the root also linking there.