Skip to main content

Django-SSO-Client-Manager is a Django application designed to simplify the management of Single Sign-On (SSO) clients within a web application. It provides functionalities for handling login and logout processes and conveniently sets codes in cookies for seamless authentication and user session management. By integrating this app into a Django project, developers can streamline the implementation of SSO functionality and enhance the overall user experience.

Project description

django-sso-client-manager

django-sso-client-manager is a Django application designed to simplify the management of Single Sign-On (SSO) clients within a web application.
It provides functionalities for handling login and logout processes and conveniently sets codes in cookies for seamless authentication and user session management.
By integrating this app into a Django project, developers can streamline the implementation of SSO functionality and enhance the overall user experience.

To install the django-sso-client-manager package and integrate it into your Django project, follow these steps:

  1. Use pip to install the package:

    pip install django-sso-client-manager    
    
  2. Add sso_client_manager to the INSTALLED_APPS list in your project's settings.py file:

    INSTALLED_APPS = [
        # other apps
        'sso_client_manager',
    ]  
    
  3. Include the ParseCodeDataMiddleware in your project's middleware configuration by adding it to the MIDDLEWARE list in settings.py:

    MIDDLEWARE = [
        # other middleware
        'sso_client_manager.middlewares.ParseCodeDataMiddleware',
    ]  
    
  4. Finally, include the sso_client_manager.urls in your project's urls.py file to set up the necessary URL routes for the SSO functionality:

    urlpatterns = [
        # other URL patterns
        path('', include('sso_client_manager.urls')),
    ]  
    

    Once you've completed these steps, the django-sso-client-manager package will be installed, and you'll have integrated its features into your Django project, allowing you to manage SSO clients with login, logout, and code handling functionalities.

Explanation of the new field to need to add in User Model (if not exist).

  1. sso_id

    The user model needs to be extended with an additional field called sso_id. This field will be used to store the unique user ID provided by the SSO (Single Sign-On) server.

    sso_id: This field will store the user ID assigned by the SSO server. When a user logs in through the SSO process, the SSO server will generate a unique ID for that user, and this ID needs to be stored in the local user model to associate the local user with the SSO user. Having this field will enable seamless user synchronization and authentication between the local application and the SSO server.

    By adding the sso_id field to the user model, the application can easily link local user accounts with their corresponding SSO accounts, allowing users to log in using their SSO credentials and access the application without the need to create separate login credentials. This enhances user experience and streamlines authentication processes.

  2. username

To integrate the SSO (Single Sign-On) functionality into your Django application, you will need to add the following variables to your settings:

  1. APPLICATION_ID:

    This variable should store the unique identifier for your application within the SSO system. It is typically provided by the SSO server during the registration process.

  2. SSO_SERVER:

    This variable holds the url of the SSO server.

  3. KEY:

    This variable represents a secret key or encryption key used for secure communication or token validation between your application and the SSO server.

    APPLICATION_ID = env.str('APPLICATION_ID')
    KEY = env.str('KEY')
    SSO_SERVER = env.str('SSO_SERVER') 
    

    By setting these variables in your Django settings, your application will be able to communicate with the SSO server, authenticate users, and manage the login/logout processes securely.

Compatibility

The compatibility information you provided indicates that the django-sso-client-manager package is compatible with Python 3.8 and Django versions 4 and above.

To ensure proper compatibility, always check the official documentation and release notes of the django-sso-client-manager package to confirm its support for specific Python and Django versions.

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-sso-client-manager-0.0.7.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

django_sso_client_manager-0.0.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file django-sso-client-manager-0.0.7.tar.gz.

File metadata

File hashes

Hashes for django-sso-client-manager-0.0.7.tar.gz
Algorithm Hash digest
SHA256 d0d8069ee23c0dac7c028bf9f18a1f7a01e0de6a88c4a0aca67b95c77d50cf76
MD5 49cdc0d33e102d8fd653d848929c62cb
BLAKE2b-256 5f978ead7d66d466b56408e4ad8d9a723d463e23636bb12aada1cbe7bc147dbb

See more details on using hashes here.

File details

Details for the file django_sso_client_manager-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sso_client_manager-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc6ff776b394eb448d37e29accebc2ab2a3d969c534537350d5a6a913ba6851
MD5 4bd2953858bb34d33619dbe2e7256ca4
BLAKE2b-256 7fc91c30be7166c2a9e1f2b89846988e2e3769c590deca022d71e106c7abd032

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