Skip to content

Add configuration support to expose the podOwner in the rootContainer #1364

Closed

Description

@phochste

Feature description:

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.

See also https://docs.inrupt.com/developer-tools/api/javascript/solid-client/modules/resource_resource.html#getpodowner

Activity

  1. jvherweg commented on Jun 30, 2022

    @jvherweg
    Member

    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.

  2. jvherweg commented on Oct 6, 2023

    @jvherweg
    Member

    Done in #1677

  3. phochste commented on Oct 24, 2023

    @phochste
    Author

    @joachimvh With version 7.. what is the configuration I need to get the functionality as described in this ticket?

  4. jvherweg commented on Oct 24, 2023

    @jvherweg
    Member

    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:

    {
      "@id": "urn:solid-server:default:PodStore",
      "@type": "BasePodStore",
      "visible": true
    }
  5. jvherweg commented on Oct 24, 2023

    @jvherweg
    Member

    Most default configs should have a document in the root also linking there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions