Giter Club home page Giter Club logo

88ocelot / django-freeipa-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enervee/django-freeipa-auth

0.0 0.0 0.0 34 KB

Django FreeIPA Auth is a backend authentication app with a simple server failover solution which can be included in a project’s authentication backends. This app communicates with a specified FreeIPA host server and authenticates a user to the django app upon successful freeIPA login.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

django-freeipa-auth's Introduction

Django FreeIPA Auth

Django FreeIPA Auth is a backend authentication app with a simple server failover solution which can be included in a project's authentication backends. This app communicates with a specified FreeIPA host server and authenticates a user to the django app upon successful freeIPA login.

Detailed documentation is in the "docs" directory.

Quick start

  1. Install using pip:

    pip install django_freeipa_auth

    If running on an old version of python without security updates, include the security marker:

    pip install django_freeipa_auth[security]
  2. Add "freeipa_auth" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'freeipa_auth',
    ]
  3. Add "freeipa_auth.backends.FreeIpaRpcAuthBackend" to your AUTHENTICATION_BACKENDS in your settings file like this:

    AUTHENTICATION_BACKENDS = [
        ...
        'freeipa_auth.backends.FreeIpaRpcAuthBackend',
    ]
  4. Override settings in your settings file like this:

    FREEIPA_AUTH_BACKEND_ENABLED = True
    FREEIPA_AUTH_SERVER = "ipa.foo.com" # defaults to None
    FREEIPA_AUTH_FAILOVER_SERVER = "ipa.failover.com" # defaults to None
    FREEIPA_AUTH_SSL_VERIFY = True # this would be the path to the ssl cert used
    FREEIPA_AUTH_UPDATE_USER_GROUPS = True # defaults to False
    FREEIPA_AUTH_ALWAYS_UPDATE_USER = True
    FREEIPA_AUTH_USER_ATTRS_MAP = {"first_name": "givenname", "last_name": "sn", "email": "mail"}
    
    'STAFF_GROUPS': '__all__' # is_staff set to True for all users
    'STAFF_GROUPS': [] # is_staff set to False for all users
    'STAFF_GROUPS': ["group1", "group2"] # is_staff set to True if user is member of at least one group
  5. Start the development server and visit http://127.0.0.1:8000/admin/ to login via freeipa rpc authentication.

django-freeipa-auth's People

Contributors

88ocelot avatar kris-anderson avatar rsbusby avatar stanislavmitrofanov avatar zombrie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.