crate / crate/crate-admin

Logout of AdminUI

Open
#706 0 comments 3 reactions 0 assignees View on GitHub
complexity: no estimate feature feature: authentication
Dominant language
JavaScript
Stars
27
Forks
18
PR merge metrics
No merged PRs in 30d

Description

As a logged in user I want to logout of the current session so that I can login as a different user.

---

Currently login is handled by BasicAuth which requires quitting the browser to invalidate the authenticated session. There are some hacky solutions with JS (eg. [1,2]) which maybe can logout from a Basic Auth session.

It would require some testing in different browser to see if it works but could potentially be quite simple addition to the Admin UI (maybe a 'logout' button/link in the ⚙️ Setting screen)

[1] https://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication/60450491#60450491
[2] https://tuhrig.de/basic-auth-log-out-with-javascript/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.