Skip to content

Make sure I've got the hostURL right #4

@crspybits

Description

@crspybits

This is in reference to the hostURL field in SolidCreds but has implications for my entire auth chain of code for Solid.

The conversation here
https://forum.solidproject.org/t/basic-question-about-url-to-use-when-making-a-request/4605/22

revealed that I can't just use the "host" of a URL for a WebID to get the base url to use when making HTTP requests of a Solid Pod. While this works for https://crspybits.inrupt.net/profile/card#me (i.e., the host component of the URL is https://crspybits.inrupt.net/), it does not work for https://pod.inrupt.com/crspybits/profile/card#me where the host is https://pod.inrupt.com.

There are several actions needed here:

  1. In my iOSSolid package, it looks like I need to overtly ask the user for this base URL, in addition to asking for the issuer URL. Not sure what terminology should be used.

  2. In the current package, I'm not sure about the Host header passed in HTTP requests. I'm not sure if this should be this base URL or if it should truly be the host component.

  3. I need to run a test of the current package making use of a webid like https://pod.inrupt.com/crspybits/profile/card#me to make sure it works in those cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions