Hi I am creating a web application in Django that integrates with Azure AD. My goal is to enable single sign on capability to my web application and I'm not sure about where to start. Please help with good references. Djangorestframework integration will be helpful
CodePudding user response:
Please refer this SO thread
If you want to implement on server
- Make sure to Add
simple_sso.sso_server
toINSTALLED_APPS
, Create an instance ofsimple_sso.sso_server.server.Server
and include valueget_urls
method
If you want to implement on Client
- Create a new instance of
simple_sso.sso_server.models.Consumer
on the Server. addSIMPLE_SSO_SECRET
andSIMPLE_SSO_KEY
provided by server modelsimple_sso.sso_server.models.Client
- Add
SIMPLE_SSO_SERVER
with correct url to rootsimple_sso.sso_server.urls
where you include on server and addsimple_sso.sso_client.urls
on client.
To configure setting's in python Replace your AUTH_ADFS with this.
To do so, login to your ADFS server and click the relying party trust created with the Django app and check all the details regarding the federation properties like data XML link, claims and attributes passing rules, etc ..
For more information in detail, please refer below links:
GitHub - divio/django-simple-sso
Implementing Single Sign On (SSO) using Django
python - How to implement single sign-on django auth in azure ad? - Stack Overflow