# Adding preferences file to webID document?

**URL:** <https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595>\
**Category:** General Discussion\
**Created:** [August 29, 2022, 2:06pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595 "2022-08-29T14:06:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaz009](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gaz009](https://forum.solidproject.org/u/gaz009)\
**Post date:** [August 29, 2022, 2:06pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595/1 "2022-08-29T14:06:17Z")

</div>

Hello all,

Using ESS 2.0 or CSS 5.0, is there any way to store a pim:preferences reference in your webID at the moment? I’m wanting to experiment with some security testing at the moment, and this part would be critical to achieving my goals.

Thanks

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [August 29, 2022, 2:11pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595/2 "2022-08-29T14:11:07Z")

</div>

Please read and comment on [Proposed Conformance Model · Issue #40 · solid/webid-profile · GitHub](https://github.com/solid/webid-profile/issues/40) which addresses these issues. At the moment, you would need to place the link to the pim:preferencesFile in the document pointed to from the WebID document with the foaf:primaryTopicOf predicate.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [August 29, 2022, 2:12pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595/3 "2022-08-29T14:12:40Z")

</div>

^^This applies to ESS. With CSS you should be able to write the link directly in the WebID document.

---

<div class="post-metadata">

**Author:** ![gaz009](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gaz009](https://forum.solidproject.org/u/gaz009)\
**Post date:** [August 29, 2022, 2:19pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595/4 "2022-08-29T14:19:25Z")

</div>

Thanks as usual Jeff.

I was reading that document and figured that would be the most straightforward approach using ESS, but in my mind I figured it would be nice if servers would go ahead and assign some sort of public-private key pair on account creation and keep it in the webID profile document. This way it’d be much easier to see if someone was trying to imitate someone else in an indirect manner.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [August 29, 2022, 2:23pm UTC](https://forum.solidproject.org/t/adding-preferences-file-to-webid-document/5595/5 "2022-08-29T14:23:46Z")

</div>

The solid:oidcIssuer ties the WebID document to the login process. You can’t be recognized as the owner of the WebID document unless you login using that issuer. Not sure how a key in the document would help. ESS does, BTW allow you as a user to change the WebID document, however that is through a special servber bypass and can’t be done with regular PUT/PATCH etc. via a script.
