django-saml2-auth | Easily integrate | Authentication library
kandi X-RAY | django-saml2-auth Summary
kandi X-RAY | django-saml2-auth Summary
Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle SAML request
- Return SAML client
- Reverse URL resolvers
- Create a new user
- Get metadata for SAML2
- Return the current domain for a request
- Return the default next URL
- Handles signin requests
- Render a welcome page
django-saml2-auth Key Features
django-saml2-auth Examples and Code Snippets
if ('django.contrib.auth.middleware.SessionAuthenticationMiddleware'
in settings.MIDDLEWARE_CLASSES and
hasattr(user, 'get_session_auth_hash')):
if hasattr(user, 'get_sessio
Community Discussions
Trending Discussions on django-saml2-auth
QUESTION
I am using Django 1.9, Python 3, running locally on Docker (for testing)
Trying to integrate django-saml2-auth into my application.
Pretty much followed all the steps in the docs:
1) All installations were successful
2) New URLs were imported above the rest
3) Installed apps includes 'django_saml2_auth'
4) 'SAML2_AUTH'
dict was placed in settings (and all attributes were mapped)
5) In the SAML2 identity provider (using OneLogin), the Single-sign-on URL and Audience URI(SP Entity ID) was set to http://127.0.0.1:8000/saml2_auth/acs/
What happens is that when I get to http://127.0.0.1:8000/admin the browser goes into an infinite redirect loop:
...ANSWER
Answered 2018-May-05 at 05:47Issue resolved:
After taking a deeper dive- it seems like this code is the issue:
In django_saml2_auth/views.py, acs()
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-saml2-auth
You can use django-saml2-auth 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