kandi X-RAY | django-simple-sso Summary
kandi X-RAY | django-simple-sso Summary
django-simple-sso
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a token from the request
- Refresh the model
- Handle authenticated user
- Check the token timeout
- Handle GET requests
- Return a user instance
- Build a User instance
- Return the next URL
- Return user data
- Get user data
- Allow user to be bound
- Return a list of urls
django-simple-sso Key Features
django-simple-sso Examples and Code Snippets
Community Discussions
Trending Discussions on django-simple-sso
QUESTION
Want to know some best ways how to achieve Single Sign On for cross platform django projects. I have a monolithic application which is getting converted to Multi Tenant system. The core part of the monolithic application is converted and divided into micro services but there are portions and part of monolithic application which will take time to get converted.
So currently I cannot remove monolithic application hence needed a way to implement Single Sign On for these two application running in parallel.
Monolithic Stack:- Python, Django1.10, mysql, MultiTenantSystem Stack :- Python, Django2.1, Postgres
Some references :- https://github.com/aldryn/django-simple-sso https://medium.com/@MicroPyramid/django-single-sign-on-sso-to-multiple-applications-64637da015f4
...ANSWER
Answered 2018-Dec-14 at 12:46I would recommand working with OpenID Connect or SAML. At work we are currently using django-oidc-provider with some business customization of course. This allows you to serve a single sign-on across multiple platforms.
The way it works is having a central authentication server that handles all logins and redirects the user to clients, which then again, exchange for an access-token
and/or id-token
. How to implement the access token from here varies, but for your sake the back-end middleware would fetch user info from the authentication server, and give the user a session cookie for your service related to the user info just fetched.
Or even better, use id-tokens
. That way you dont need to ask for user info from the authentication server as these are JWT and can be verified by cryptography.
For more info you can checkout the OpenID website.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-simple-sso
You can use django-simple-sso like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page