SAML与Django认证 [英] SAML with Django authentication
问题描述
我看到的许多应用程序都是django 1.2和更低版本。具体来说,我正在寻找资源,使我能够通过一些中间件或其他任何东西更轻松地管理SAML身份验证。
我看到的一些事情是: / p>
https://github.com/unomena/django-saml2- idp
https://github.com/ WiserTogether / django-saml2-sp
我找到的项目如下:
https://bitbucket.org/lgs/djangosaml2/overview
该项目使用psaml2作为SAML支持。 Pysaml2可以在这里找到:
https://github.com/rohe/pysaml2
请记住,djangosaml2可能不会使用最新版本的pysaml2。我测试了它,它的工作正常。
更新
djangosaml2适用于最新 pysaml2
的版本,但请确保添加此行以使其正常工作:
SESSION_SERIALIZER ='django.contrib.sessions.serializers.PickleSerializer'
这应该在你的 settings.py
。
I'm using Django and nginx hosted on AWS. I'm trying to integrate with a university for SAML authentication, using their idp. There are plenty of outdated answers on SO, but is there anything more relevant with current standards?
Many of the apps i've seen are for django 1.2 and lower. Specifically i'm looking for resources that would allow me to more easily manage the SAML authentication through some middleware or anything else.
Some of the things I have seen are:
https://github.com/unomena/django-saml2-idp
https://github.com/WiserTogether/django-saml2-sp
The project I found is below:
https://bitbucket.org/lgs/djangosaml2/overview
The project uses psaml2 for SAML support. Pysaml2 can be found here:
https://github.com/rohe/pysaml2
Bear in mind that djangosaml2 may not use the latest version of pysaml2. I tested it and its working fine.
UPDATE
djangosaml2 works with latest version of pysaml2
, but make sure to add this line to make it work:
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
This should be in your settings.py
.
这篇关于SAML与Django认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!