simple-sso | a simple SSO project based on java | Authentication library
kandi X-RAY | simple-sso Summary
kandi X-RAY | simple-sso Summary
a simple SSO project based on java
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle logout
- Set a token
- Logout the user
- Gets the token list
- Main entry point
- Send post
- Sets login
- Store a session
- Logout user
- Get a cached session
- Login
- Generate RSA keypair
- Decrypt base64 string
- Encode base64 string
- Show the login page
- Encodes string
- Find user
simple-sso Key Features
simple-sso Examples and Code Snippets
Community Discussions
Trending Discussions on 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 simple-sso
You can use simple-sso like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the simple-sso component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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