Logout screen, cleanup session and error message on invalid login url #146
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd!146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "logout-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@babelouest thank you for this ambitious PR.
A number of things seem broken on my end. Am attaching screenshots for some of those things.
I cannot arrive at the log out screen at all. Is it still wired to the "killall" button?
I am locked out of the admin app in the latest commit. My admin account is indeed authorized, but I am not presented with a green Continue button (screenshot below). I am asked to "register a scheme in my profile" but this should not be necessary because my admin scope does not use n-factor authentication.
Indeed, some new bugs appeared, I'll take care of them. That's why I put those changes in a separate branch, I was afraid it could break legacy code, unfortunately I have no UI tests...
That's a change I made on purpose (but still has bugs). The problem was: you can be logged in the admin page with 3 users: admin, user1 and user2, in this case, only admin has the scope
g_adminwhich grants access to the admin page. In the admin page, if you are connected as admin and switch to user1 by mistake or because you don't know better, you will have no choice but to reconnect via the login page.To improve this, maybe we could show the other connected users but disable them if they don't have he scope
g_admin.The behavior is similar in the profile page.
@babelouest I like the idea of showing logged in but non-authorized users as "disabled"! It would be a kind of luxury I haven't seen in any other multi-session environments.
@babelouest Thank you also for merging-in #144. Would appreciate hearing your thoughts about the underlying concern, whenever time allows.
Hello @yrammos ,
I've pushed some changes in the branch
Fixed, it was a forgotten flag.
Fixed
I've also disabled non-authorized users in the dropdown lists in the admin and profile page. Now when a user doesn't have the required scope, it can't be selected in the dropdown list, see screenshot

Yes, you have the "killall" button when you're at the manage connected user page, a red "logout all users" in the bottom-right
It seems that you have added a scheme for the
g_adminscope and the useradmindoesn't have the scheme registered. You can reset yourg_adminscope as explained in the documentation: https://github.com/babelouest/glewlwyd/blob/master/docs/GETTING_STARTED.md#impossible-to-log-in-as-administrator---n-factor-issue@yrammos , I haven't seen other bugs in this branch, I'm merging it into master then