Skip to main content

Django app that offers a big red button to sign out of all other user sessions

Project description

Big Red Button

For Django

pypi pre-commit.ci status tests ci

django-bigredbutton provides a big red "End All Other Sessions" button in a list of a user's current sessions.

Rendered with a light theme:

light_bg

Rendered with a dark theme:

dark_bg

It can work with multiple session backends, and includes built-in templates for both django-qsessions and django-user-sessions, and dynamically switches between them depending on which one is identified in settings.SESSION_ENGINE.

Compatibility

  • Python: >= 3.11
  • Django: >= 4.0

Installation

  1. Install the latest version:

    pip install django-bigredbutton
    
    poetry add django-bigredbutton
    
  2. Add a session backend, like django-qsessions or django-user-sessions. You can use the optional packaging shortcuts:

    pip install 'django-bigredbutton[qsessions]'
    
    poetry add 'django-bigredbutton[qsessions]'
    
    pip install 'django-bigredbutton[user-sessions]'
    
    poetry add 'django-bigredbutton[user-sessions]'
    

    But there may be additional steps required for each session backend. Refer to the documentation for your session backend package for their installation instructions.

  3. Add bigredbutton to INSTALLED_APPS in your project's settings.py, and optionally set BIGREDBUTTON_DELETE_SUCCESS_URL_NAME to the URL name of your choice (default: list_sessions).

  4. Register bigredbutton in your projects root URLConf:

    urlpatterns = [
        ...
        path("account/sessions/", include("bigredbutton.urls")),
        ...
    ]
    

Usage

Run Django's development server and navigate to the configured root for bigredbutton. The URL in these instructions will be http://localhost:8000/account/sessions/.

You will see a list of all of your current sessions. If you have more than one session (eg: you are signed in on more than one browser or device), you will see a big red "End All Other Sessions" button. That button will sign you out of all of your other sessions.

TODO

I have intentionally kept this app very small to minimize the maintenance burden. But contributions are very welcome!

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_bigredbutton-0.3.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_bigredbutton-0.3.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file django_bigredbutton-0.3.2.tar.gz.

File metadata

  • Download URL: django_bigredbutton-0.3.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_bigredbutton-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f0c33acbc60784dc2c13075e9441bcd1076f9c6b9bc7ad02fabc2ca38bff0eaf
MD5 4c6f796fbb9c052b7347b5fbbfb47da1
BLAKE2b-256 3b82ec224bbd9f55ab7402f44f548d0561bb9b4fb439b528e4ea7dffbee429c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_bigredbutton-0.3.2.tar.gz:

Publisher: publish.yml on blag/django-bigredbutton

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_bigredbutton-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_bigredbutton-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ac4b9a20dc0da5dae29d48863343f366a64896ae6f124f55f71a7f13a7b125f
MD5 db0e01686d8ce2f774b523ffbdea9ca8
BLAKE2b-256 784a361b66b068b000775703697258185f5c7d0e84fdabc1f0282413e9b701fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_bigredbutton-0.3.2-py3-none-any.whl:

Publisher: publish.yml on blag/django-bigredbutton

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page