Let visitors try the app as a guest, and keep their study when they log in - #990
Merged
Merged
Conversation
…og in The landing page now offers, first, to try Solid Memo without logging in. A guest studies in a pod kept in the browser: localPod.ts serves the part of the Solid Protocol the adapters use (GET, HEAD, PUT, DELETE, SPARQL DATA PATCHes, ETags and preconditions, containment listings) over a ResourceStore, IndexedDB in the browser, so the login redirect does not lose it. A router sends every URL below https://guest.solid-memo.invalid/ there and every other one to the network, so every adapter, use case and screen works for guests unchanged. The origin never resolves: a guest URL that reached the network would fail rather than go anywhere. Logged in, the user is offered to move the guest's study into their Pod: transferGuestStudy copies the guest's instance into a new instance, its IRIs moved and the guest's WebID made theirs, checks no document still names the guest's pod, validates the copy and that the guest's study did not change meanwhile, registers it in their type index, and only then deletes it from the browser. A failure before the registration removes the copy and leaves the guest's study as it was. The copy and verify steps are shared with the instance update now. @inrupt/solid-client read the WebID document for storage discovery with the browser's own fetch, whatever fetch it was given; it is now handed the profile read through the app's. The move is tested end to end against CSS 7 and 6 and NSS 6 and 5. See docs/guest-mode.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.