Authenticated users using Azure Active Directory.
Project description
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.
======================
*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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-azure-ad-auth-1.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | defd670f973c3c8c8516e4e88d80b5a58f28be649609323affe4f03a7dd4da04 |
|
MD5 | 476eec94cda7cf3b78290ce7e9528a8f |
|
BLAKE2b-256 | 8a9366f6c3546dc1460d0477ef53d7f36d4870bc8ed45a98e550f50be6118bb6 |
Close
Hashes for django_azure_ad_auth-1.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b94fadb4c74dfbb35f7af152bc6eee77ff617b19d13b601d1acf69c77ae47b63 |
|
MD5 | 8a50fd4ed818ec1f7d622889991db554 |
|
BLAKE2b-256 | d1af7969bb6fa513c2a1b6a991a080c1d78c7fbea5ab6f7c9c598738d2fdbd8d |