Metadata-Version: 2.0
Name: django-azure-ad-auth
Version: 1.1.2
Summary: Authenticated users using Azure Active Directory.
Home-page: https://bitbucket.org/nextscreenlabs/django-azure-ad-auth
Author: Jason Christa
Author-email: jason@zeitcode.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: BSD License
Classifier: Framework :: Django
Classifier: Programming Language :: Python
Requires-Dist: Django (>=1.4)
Requires-Dist: PyJWT (>=1.1.0)
Requires-Dist: cryptography (>=0.9)
Requires-Dist: lxml (>=3.0.0)
Requires-Dist: requests (>=2.0.0)

Django Azure AD Auth
======================

*Django Azure AD Auth* allows you to authenticate through Azure Active Directory.

Installation
------------

Run `pip install django-azure-ad-auth`

Add the `AzureActiveDirectoryBackend` to your `AUTHENTICATION_BACKENDS` setting:

```python
AUTHENTICATION_BACKENDS = (
    ...
    'azure_ad_auth.backends.AzureActiveDirectoryBackend',
)
```

Settings
--------

###AAD_TENANT_ID

The Azure Tenant ID. It can be found in the URL of the Azure Management Portal.

###AAD_CLIENT_ID

The Azure Application Client ID.


###AAD_AUTHORITY

**default:** `'https://login.microsoftonline.com'`
The domain that is used for authorization, the federation metadata document, and loggin out.

###AAD_SCOPE

**default:** `'openid'`
OAuth scope parameter.

###AAD_RESPONSE_TYPE

**default:** `'id_token'`
Tells OAuth to return a JWT token in its response.

###AAD_RESPONSE_MODE

**default:** `'form_post'`
Defines how the response parameters are returned. Valid choices are `fragment` or `form_post`.

###AAD_USER_CREATION

**default:** `True`
Allow creation of new users after successful authentication.


