Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The pods:connectStorage() action takes as parameters information about the desired storage and persistently saves the data so that it can access the storage and authenticate with the storage. This action will also authenticate with the storage. This action will fail if data is already saved (see pods:disconnectStorage()).

  • storageURL — A required string parameter that represents the URL used to read and write to the pod. It should end with a slash, representing a container (e.g. http://examplepodserver.org/podName/).

  • clientID — A required string parameter that is a token identifier generated by your WebID provider. For an Inrupt pod, you can get this at https://login.inrupt.com.

  • clientSecret — A required string parameter that is the token secret associated with the token identifier generated by your WebID provider. For an Inrupt pod, you can get this at https://login.inrupt.com.

  • tokenURL — A required string parameter that represents the URL used to authenticate your clientID and clientSecret. This URL can be found by looking at the "token_endpoint" field at http://localhost:3000/.well-known/openid-configuration if your server is hosted at http://localhost:3000/. For an Inrupt pod, this URL should be https://login.inrupt.com/token.

  • No labels