Skip to main content

Django Microsoft Authentication Backend

PyPi Python Versions Travis CI Documentation Updates Coverage Maintainability Test Coverage

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.

Features

  • Provides Django authentication backend to do Microsoft authentication (including Microsoft accounts, Office 365 accounts and Azure AD accounts) and Xbox Live authentication.

  • Provides Microsoft OAuth client to interfacing with Microsoft accounts

Python/Django support

django_microsoft_auth follows the same support cycle as Django, with one exception: no Python 2 support. If you absoutely need Python 2.7 support, everything should largely already work, but you may need to patch microsoft_auth.admin and/or other files to get it to work.

Supported python versions: 3.4+ (for Django versions less than 2.1)

Supported Django version: 1.11 LTS, 2.0+

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

2.0.0 (2019-3-19)

  • Replaces deprecated Microsoft auth scopes with proper OpenID Connect ones
    • WARNING: Breaking change. New scopes provide a new user id. See migration docs for details.

  • Pulls authorization/token URLs directly from Microsoft

  • Adds id token validation

1.3.3 (2019-3-16)

  • Adds expiration to state values (hardcoded 5 minutes)

1.3.2 (2019-3-16)

  • Changes state validation to use cryptographic signing now. State validation should be signfincally more relaible now.

1.3.1 (2019-3-16)

  • Adds more logging around CSRF/State failures

1.3.0 (2019-3-5)

  • Adds support for other tenant IDs for Microsoft authentication (thanks aviv)

1.2.1 (2019-2-28)

  • Adds missing migration for changing microsoft_id from 32 to 36 length

1.2.0 (2019-1-13)

  • Adds various checks and logging to validate setup to help with debugging

  • Adds support for http://localhost as a redirect URI base if DEBUG is enabled

  • Fixes Javascript message passing if using a non-standard port (something other than 80 or 443)

1.1.0 (2018-7-3)

  • Removes o365 option. New authorization URL works well enough for both
    • Xbox Live Auth still uses old Microsoft Auth URL

    • ‘o365’ will still work as a MICROSOFT_AUTH_LOGIN_TYPE value, but you should change it to ‘ma’

  • Adds extras:
    • ql: DjangoQL package and support

    • test: test dependencies (same as test_requires packages)

    • dev: ql`+`test and extra dev only dependencies like twine and pip-tools

  • Pip 10 support (thanks Shigumitsu!)

  • Fixes max length of o365 IDs (thanks Shigumitsu!)

1.0.6 (2018-4-8)

  • Added patched username validator to allow spaces for usernames for Xbox Live Gamertags

1.0.5 (2018-4-8)

  • Added missing templates and static files to MANIFEST

1.0.4 (2017-12-2)

  • Updated Django category to include 2.0

1.0.3 (2017-12-2)

  • Updated for Django 2.0

1.0.2 (2017-11-27)

  • Changed Development Status category to Stable

1.0.0 (2017-11-19)

  • First release on PyPI.

Metadata

Release files for django-microsoft-auth 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-microsoft-auth 2.0.0
File Size Uploaded
django_microsoft_auth-2.0.0.tar.gz 58.6 kB Details

Release files / django_microsoft_auth-2.0.0.tar.gz

Download URL django_microsoft_auth-2.0.0.tar.gz
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c6fa1481b122c497258659beb8e247ae5491d4dd5283f7e1c494fb0c2b084ed0
BLAKE2b-256 checksum
How to use checksums
4937a5983f35d9b95523b1c1ff5cfd542caf58b434f05d2ef45240120c15fa0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

Release history Release notifications | RSS feed

3.0.1

2 release files

3.0.0

2 release files

2.4.1

2 release files

2.4.0

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.1

1 release file

This release

2.0.0 This release

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page