Skip to main content

Django Sites Microsoft Authentication Backend

Travis CI Updates Documentation Status Coverage Maintainability Test Coverage

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentication backend that is compatible and configurable across multiple sites.

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_sites_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 sites_microsoft_auth.admin and/or other files to get it to work.

Supported python versions: 3.6+

Supported Django version: 1.11 LTS, 2.1+

https://docs.djangoproject.com/en/stable/faq/install/#what-python-version-can-i-use-with-django

Note: Even though Django 1.11 LTS supports Python 3.4, I do not and you should not either. Official support for 3.4 was dropped in March 2019.

Credits

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

History

1.0.4 (2020-03-20)

  • Remove migration for user attribute mapping which was still there accidentally and breaking all tests.

1.0.3 (2020-03-13)

  • Remove user attribute mapping. This feature was buggy and the same can be achieved using hooks.

1.0.2 (2020-03-13)

  • Fix get_hook() to work with database configuration.

1.0.1 (2020-03-13)

  • Fixes bug when reading user attribute mappings.

1.0.0 (2020-03-13)

  • Fixes bug with Site note existing

  • Add feature to sync user attributes from Azure AD.

0.2.11 (2020-01-13)

  • Fixes bug where the max_length on a CharField wasn’t long enough for all choices to be stored.

0.2.10 (2019-09-24)

  • Fixes bug in 0.2.9 where cache key was failing.

0.2.9 (2019-09-24)

  • Update cache to work on a per-site basis.

0.2.8 (2019-09-23)

  • Fix bug where migrations were relying on undefined ordering.

0.2.7 (2019-09-23)

  • Fix tests to work with new default for login_enabled.

0.2.6 (2019-09-23)

  • Make sure migrations for sites_microsoft_auth run after migrations for sites framework.

0.2.5 (2019-09-23)

  • Add SiteConfiguration object for all sites during initial migrate.

  • Change default for login_enabled to False

0.2.4 (2019-09-23)

  • Fix bug where ‘MicrosoftAuthenticationBackend` is not respecting site on the MicrosoftAccount model.

0.2.3 (2019-09-23)

  • Fixed bug with MicrosoftAuthenticationBackend not restricting users to their respective sites.

0.2.2 (2019-09-23)

  • Updated package name to sites_microsoft_auth from microsoft_auth

0.2.1 (2019-09-23)

  • Updated documentation.

0.2.0 (2019-09-23)

  • First working release on PyPi

Metadata

Release files for django-sites-microsoft-auth 1.0.6

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-sites-microsoft-auth 1.0.6
File Size Uploaded Provenance
django_sites_microsoft_auth-1.0.6.tar.gz 57.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sites-microsoft-auth 1.0.6
File Interpreter ABI Platform
django_sites_microsoft_auth-1.0.6-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 88.9 kB

Release files / django_sites_microsoft_auth-1.0.6.tar.gz

Download URL django_sites_microsoft_auth-1.0.6.tar.gz
Size 57.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b64ac321da50deeef599abb0c8e5d549ef4884a4ba8d06dbbcb6fdbe23596238
BLAKE2b-256 checksum
How to use checksums
171ff4860131a3f67dedfc3c8f6e59730b65074aae76699131dfca1cd2726706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release files / django_sites_microsoft_auth-1.0.6-py2.py3-none-any.whl

Download URL django_sites_microsoft_auth-1.0.6-py2.py3-none-any.whl
Size 31.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cd92dd93f1976690d08b08ae23a7da104738b03ea74378311edd90876f33ddb4
BLAKE2b-256 checksum
How to use checksums
4ceea3b41178201582cf91c9c859aad90c8a885810070c0b5685553fe598a15b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Security for django-sites-microsoft-auth 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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