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

Logout all users except superusers #191

Open
williwacker opened this issue Apr 30, 2024 · 2 comments
Open

Logout all users except superusers #191

williwacker opened this issue Apr 30, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@williwacker
Copy link

williwacker commented Apr 30, 2024

I have set:

MAINTENANCE_MODE_IGNORE_SUPERUSER = True
MAINTENANCE_MODE_LOGOUT_AUTHENTICATED_USER = True

When activating the maintenance mode also the superuser gets logged out and has no change to sign-in again.
With this combination I wish the superuser can stay in and all authenticated users get logged off?

I would even do the check later and provide the user with the login screen. If not a superuser login will fail with 503, but a superuser can login.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@williwacker williwacker added the enhancement New feature or request label Apr 30, 2024
@fabiocaccamo
Copy link
Owner

fabiocaccamo commented Apr 30, 2024

@williwacker these two settings operates in different contexts: MAINTENANCE_MODE_IGNORE_SUPERUSER tells if super user is subject to maintenance mode response or not, MAINTENANCE_MODE_LOGOUT_AUTHENTICATED_USER affects all users.

For achieving what you need some new options should be added:

  • MAINTENANCE_MODE_LOGOUT_STAFF_USER
  • MAINTENANCE_MODE_LOGOUT_SUPERUSER

@fabiocaccamo fabiocaccamo moved this to In Progress in Open Source Apr 30, 2024
@fabiocaccamo fabiocaccamo moved this from In Progress to Todo in Open Source Apr 30, 2024
@williwacker
Copy link
Author

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants