Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve remembering of logged in user #98

Open
rhiaro opened this issue Jan 16, 2016 · 0 comments
Open

Improve remembering of logged in user #98

rhiaro opened this issue Jan 16, 2016 · 0 comments

Comments

@rhiaro
Copy link
Collaborator

rhiaro commented Jan 16, 2016

Remember profile properties and storage URI etc between page reloads.

Sometimes the server still considers a user authenticated even between page reloads due to the browser session persisting (or something) but dokieli forgets everything until the WebID is typed again. So there are some operations you can do whilst appearing not logged in, but you're actually authenticated so they work (without even a cert popup). If we do a HEAD to check the user is logged in at the start - if the user is authenticated, it'll be great and silently populate all the data we need, but if they're not it will trigger annoying cert popups.

Maybe this is something we can solve with localstorage only... the user authenticating again (eg. as someone else) would reset the localstorage, so it should be reliable? But if the the server decides to timeout the authentication session, I don't know if there's a way to reliably update local storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants