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
Asked
Active
Viewed 1,149 times
0
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community May 29 '22 at 15:41
1 Answers
0
Please refer this SO thread
If you want to implement on server
- Make sure to Add
simple_sso.sso_servertoINSTALLED_APPS, Create an instance ofsimple_sso.sso_server.server.Serverand include valueget_urlsmethod
If you want to implement on Client
- Create a new instance of
simple_sso.sso_server.models.Consumeron the Server. addSIMPLE_SSO_SECRETandSIMPLE_SSO_KEYprovided by server modelsimple_sso.sso_server.models.Client - Add
SIMPLE_SSO_SERVERwith correct url to rootsimple_sso.sso_server.urlswhere you include on server and addsimple_sso.sso_client.urlson 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
Imran
- 3,875
- 2
- 3
- 12