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_auth_keycloak
    e.g from django_admin_auth_keycloak.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.0.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

django_admin_oauth_sessions-0.1.0-py2.py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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