Django Azure AD Auth Redux
==========================
*Django Azure AD Auth* allows you to authenticate through Azure Active Directory.
This fork has the following additional features:
- Add the specification of the decode algorithm per newer PyJWT requirements.
- Supports django > 3.2.18
Installation
------------
Run `pip install django-azure-ad-auth-redux`
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 logging 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.
### AAD_USER_MAPPING
**default:** `{}`
Map fields from the token to the user, to be used on creation.
### AAD_USER_STATIC_MAPPING
**default:** `{}`
Map static values to user fields on creation.
### AAD_GROUP_MAPPING
**default:** `{}`
Map group ids to group names for user permissions.
Raw data
{
"_id": null,
"home_page": "https://github.com/lanshark/django-azure-ad-auth-redux",
"name": "django-azure-ad-auth-redux",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.10",
"maintainer_email": null,
"keywords": "Python, Active Directory, Django",
"author": "Scott Sharkey",
"author_email": "scott.sharkey@rsginc.com",
"download_url": "https://files.pythonhosted.org/packages/26/d2/794f94aebb4c0fe2e4c57ebda07b175bde9abd4ec2f27f5780f0e41299c0/django_azure_ad_auth_redux-1.5.24.tar.gz",
"platform": null,
"description": "Django Azure AD Auth Redux\n==========================\n\n*Django Azure AD Auth* allows you to authenticate through Azure Active Directory.\n\n This fork has the following additional features:\n - Add the specification of the decode algorithm per newer PyJWT requirements.\n - Supports django > 3.2.18\n\nInstallation\n------------\n\nRun `pip install django-azure-ad-auth-redux`\n\nAdd the `AzureActiveDirectoryBackend` to your `AUTHENTICATION_BACKENDS` setting:\n\n```python\nAUTHENTICATION_BACKENDS = (\n ...\n \"azure_ad_auth.backends.AzureActiveDirectoryBackend\",\n)\n```\n\nSettings\n--------\n\n### AAD_TENANT_ID\n\nThe Azure Tenant ID. It can be found in the URL of the Azure Management Portal.\n\n### AAD_CLIENT_ID\n\nThe Azure Application Client ID.\n\n### AAD_AUTHORITY\n\n**default:** `\"https://login.microsoftonline.com\"`\nThe domain that is used for authorization, the federation metadata document, and logging out.\n\n### AAD_SCOPE\n\n**default:** `\"openid\"`\nOAuth scope parameter.\n\n### AAD_RESPONSE_TYPE\n\n**default:** `\"id_token\"`\nTells OAuth to return a JWT token in its response.\n\n### AAD_RESPONSE_MODE\n\n**default:** `\"form_post\"`\nDefines how the response parameters are returned. Valid choices are `fragment` or `form_post`.\n\n### AAD_USER_CREATION\n\n**default:** `True`\nAllow creation of new users after successful authentication.\n\n### AAD_USER_MAPPING\n\n**default:** `{}`\n\nMap fields from the token to the user, to be used on creation.\n\n### AAD_USER_STATIC_MAPPING\n\n**default:** `{}`\n\nMap static values to user fields on creation.\n\n### AAD_GROUP_MAPPING\n\n**default:** `{}`\n\nMap group ids to group names for user permissions.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Authenticate users using Azure Active Directory.",
"version": "1.5.24",
"project_urls": {
"Homepage": "https://github.com/lanshark/django-azure-ad-auth-redux",
"Repository": "https://github.com/lanshark/django-azure-ad-auth-redux"
},
"split_keywords": [
"python",
" active directory",
" django"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7ddbd790259b48049d21555f32797bc855c5be9373c70f82553e2fc383ae1651",
"md5": "69cd1f6dd7d0384d9a150ddaba2d0a11",
"sha256": "a98f16f2e47aac1468c0c2a1956b78961611c9deede1514c68024789ba5f18e6"
},
"downloads": -1,
"filename": "django_azure_ad_auth_redux-1.5.24-py3-none-any.whl",
"has_sig": false,
"md5_digest": "69cd1f6dd7d0384d9a150ddaba2d0a11",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 8409,
"upload_time": "2024-06-17T13:17:08",
"upload_time_iso_8601": "2024-06-17T13:17:08.066070Z",
"url": "https://files.pythonhosted.org/packages/7d/db/d790259b48049d21555f32797bc855c5be9373c70f82553e2fc383ae1651/django_azure_ad_auth_redux-1.5.24-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26d2794f94aebb4c0fe2e4c57ebda07b175bde9abd4ec2f27f5780f0e41299c0",
"md5": "592abbda7604a1a859d7e8118b166d7f",
"sha256": "e44481f6768196e7d882b421e8187e23971913f1d20e1d49eec8ea470b9b4f88"
},
"downloads": -1,
"filename": "django_azure_ad_auth_redux-1.5.24.tar.gz",
"has_sig": false,
"md5_digest": "592abbda7604a1a859d7e8118b166d7f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 7667,
"upload_time": "2024-06-17T13:17:09",
"upload_time_iso_8601": "2024-06-17T13:17:09.168589Z",
"url": "https://files.pythonhosted.org/packages/26/d2/794f94aebb4c0fe2e4c57ebda07b175bde9abd4ec2f27f5780f0e41299c0/django_azure_ad_auth_redux-1.5.24.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-17 13:17:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lanshark",
"github_project": "django-azure-ad-auth-redux",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-azure-ad-auth-redux"
}