django-azure-ad-auth-redux


Namedjango-azure-ad-auth-redux JSON
Version 1.5.25 PyPI version JSON
download
home_pageNone
SummaryAuthenticate users using Azure Active Directory.
upload_time2025-01-24 23:58:42
maintainerNone
docs_urlNone
authorScott Sharkey
requires_python<4,>=3.10
licenseMIT
keywords python active directory django
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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": null,
    "name": "django-azure-ad-auth-redux",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=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/7c/ed/42fd4bcd53083b5702a4ed614b2270becdef83a322601464c78978c83d7a/django_azure_ad_auth_redux-1.5.25.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\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Authenticate users using Azure Active Directory.",
    "version": "1.5.25",
    "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": null,
            "digests": {
                "blake2b_256": "1447fbaea2ee3753a9dac7415745b8e77baf0b869d7a48d4b9d4ebeff3f2a984",
                "md5": "3e32d8107da5a011b3892ce48b0481bb",
                "sha256": "b19171d9afce2c81e619b09feea096acb60a1500a34ed8b8a7739b1cb5987569"
            },
            "downloads": -1,
            "filename": "django_azure_ad_auth_redux-1.5.25-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3e32d8107da5a011b3892ce48b0481bb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.10",
            "size": 7507,
            "upload_time": "2025-01-24T23:58:40",
            "upload_time_iso_8601": "2025-01-24T23:58:40.517760Z",
            "url": "https://files.pythonhosted.org/packages/14/47/fbaea2ee3753a9dac7415745b8e77baf0b869d7a48d4b9d4ebeff3f2a984/django_azure_ad_auth_redux-1.5.25-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7ced42fd4bcd53083b5702a4ed614b2270becdef83a322601464c78978c83d7a",
                "md5": "b7242d708d29725193af2c3664caa547",
                "sha256": "56052d3e3edb5b9e73dfe111628bb1ef1be965ebf037e860b6a79c283cc8737b"
            },
            "downloads": -1,
            "filename": "django_azure_ad_auth_redux-1.5.25.tar.gz",
            "has_sig": false,
            "md5_digest": "b7242d708d29725193af2c3664caa547",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.10",
            "size": 7294,
            "upload_time": "2025-01-24T23:58:42",
            "upload_time_iso_8601": "2025-01-24T23:58:42.199288Z",
            "url": "https://files.pythonhosted.org/packages/7c/ed/42fd4bcd53083b5702a4ed614b2270becdef83a322601464c78978c83d7a/django_azure_ad_auth_redux-1.5.25.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-24 23:58:42",
    "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"
}
        
Elapsed time: 1.99750s