linkeddata / dokieli

:bulb: dokieli is a clientside editor for decentralised article publishing, annotations and social interactions
https://dokie.li/
Other
788 stars 81 forks source link

Set-up issues with Dokieli (JS version) (on firefox?) #361

Open renyuneyun opened 1 year ago

renyuneyun commented 1 year ago

I'm attempting to use Dokieli again, and now seem to made it working. Along the journey, I discovered some issues that prevents it from running normally. It is based on the JS inline version of dokieli (e.g. on https://csarven.ca or https://dokie.li/) on firefox; I'm using my solidcommunity.net identity. Not sure how wide this applies.

Could be related to #317? Though completely different environment.

Issue 1 -- 401 unauthenticated for identity

I used WebID to log-in first. There was no log-in (entering username and password on solidcommunity.net) procedure. The avatar and nickname showed up. But on the console there is 401 unauthenticated, for the following two resources:

https://MY-POD/settings/prefs.ttl
https://MY-POD/settings/privateTypeIndex.ttl

Interactions with the content (e.g. comment) does not work; nor pop-ups requiring authentication.

Then I log-in using Solid OIDC, which jumps to the log-in page, and then this problem disappeared; next issue emerged.

Conclusion: There is some inconsistency of the log-in procedure.

Issue 2 -- 403 Origin Unauthorized after login

This is the error message I got instead, after log-in using Solid OIDC. I understand this, because the App's Origin was not authorized. I then went to my settings, and added the origin (of the website, e.g. https://csarven.ca) with Read Write Append permission (maybe overkill, but to test). Then it worked. Reply to the page was "successful" (both storing and sending), and I also saw the content in my Pod.

Conclusion: Authorization page was not "activated" automatically after log-in.

Further comment

This may just be my naïveness. After selecting a range of texts, and using "note" in the floating pop-up, nothing seem to happen. I was not prompted with a detailed location to store it (compared with "reply"), nor did I find any new files in my Pod.

It could well be my issue, and I'll keep reading and trying to figure out. But I'd still mention this here in case this is a bug or so.

csarven commented 2 months ago

Hi @renyuneyun , thanks for this issue! And detailed walkthrough.

I delayed responding to this because it was partly covered by some other issues. Now that we are milestoning, processing this issue.


If I understand you correctly, I'd like to close this issue because we cover this already. Here is a summary:

Issue 1 is covered by issues/milestones touching on authentication and UI, e.g., https://github.com/linkeddata/dokieli/issues?q=is%3Aopen+label%3Aauthentication+label%3AUI , https://github.com/linkeddata/dokieli/milestone/6 .

Issue 2 is covered by a mixture of issues/milestone touching on error-handling and UI, e.g., https://github.com/linkeddata/dokieli/issues?q=is%3Aissue+is%3Aopen+label%3Aerror-handling , https://github.com/linkeddata/dokieli/milestone/4


As for the Further comment, I think it'll be resolved by addressing the issues mentioned above under Issue 1:

Are you authenticated using "OpenID Connect" from the Sign in? Otherwise, I can see that if you provided your solidcommunity.net WebID in the text input of Sign in, it didn't really authenticate you although your WebID Profile Document is fetched and everything.