Skip to main content

A django Project for custom authentication for sso tokens

Project description

Django Admin Oauth Sessions

https://img.shields.io/pypi/v/django_admin_oauth_sessions.svg Documentation Status

A django Project for custom authentication for sso tokens

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

django_admin_oauth_sessions is a Django app to validate SSO tokens.

Quick start

  1. Add “django_admin_auth_keycloak” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_admin_oauth_sessions',
    ]
  2. Add “DjangoAdminOAuthSessionMiddleware” in your MIDDLEWARE in settings file:

    MIDDLEWARE = [
        ...
        'django_admin_oauth_sessions.django_admin_oauth_sessions.DjangoAdminOAuthSessionMiddleware',
    ]
  3. Update the logout url in urls.py as:

    path('admin/logout/', logout_view, name='logout')
    import logout_view from django_admin_oauth_sessions
    e.g from django_admin_oauth_sessions.views import logout_view
  4. Start the development server:

    visit http://localhost:8000/admin/
    to create a django_admin_oauth_sessions (you'll need the Admin app enabled).

History

0.1.0 (2022-03-02)

  • First release on PyPI.

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_admin_oauth_sessions-0.1.5.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

django_admin_oauth_sessions-0.1.5-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_admin_oauth_sessions-0.1.5.tar.gz.

File metadata

  • Download URL: django_admin_oauth_sessions-0.1.5.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for django_admin_oauth_sessions-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9a78a2e52b2f2501c09c7c7a994b519e54b495021c2b4a5e03f9dc86643a8bad
MD5 fd12127bb6a02a258fb66d5cf1a178e5
BLAKE2b-256 c5318aeb4c17681cc1222812c2b0e0e0f7cc6b3362015d0689b6eb7889f5ddb0

See more details on using hashes here.

File details

Details for the file django_admin_oauth_sessions-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: django_admin_oauth_sessions-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for django_admin_oauth_sessions-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3930f6d184499f426f86191bca45b772ea20512f1845a03ff29026e923c6d9b9
MD5 9af008bdfc249d0f6f286a5e5f2eb2e9
BLAKE2b-256 0e2dd3166624d3ae86586229bb870e99a58949df626128628244275266a37706

See more details on using hashes here.

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