
Welcome to Django Microsoft SSO¶
Motivation¶
This library aims to simplify the process of authenticating users with Microsoft in Django Admin pages, inspired by libraries like django_microsoft_auth and django-admin-sso
Why another library?¶
-
This library aims for simplicity and ease of use. django-allauth is de facto solution for Authentication in Django, but add lots of boilerplate, specially the html templates. Django-Microsoft-SSO just add the "Login with Microsoft" button in the default login page.


-
django_microsoft_auth is a bit outated but you can use it for old python and django versions.
- Microsoft provides a complete tutorial here: https://learn.microsoft.com/en-us/training/modules/msid-django-web-app-sign-in/, with very good insights, but it's a bit outdated and doesn't provide the social button.
Install¶
Currently this project supports:
- Python 3.11, 3.12, 3.13 and 3.14
- Django 5.0, 5.1, 5.2 and 6.0
Older python/django versions are not supported.