Skip to content

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 Google" 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

pip install django-microsoft-sso

Currently this project supports:

  • Python 3.11, 3.12 and 3.13
  • Django 4.2, 5.0 and 5.1