Name | msal-bearer JSON |
Version |
1.1.3
JSON |
| download |
home_page | https://github.com/Equinor/msal-bearer |
Summary | Python package to get auth token interactively for a public client application using msal and msal-extension for caching. |
upload_time | 2024-10-23 20:09:01 |
maintainer | None |
docs_url | None |
author | Åsmund Våge Fannemel |
requires_python | <4.0,>=3.8 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# msal-bearer
Python package to get authorization token interactively for a msal public client application supporting local cache and refreshing the token.
## Usage
````
from msal_bearer.BearerAuth import BearerAuth
tenantID = "YOUR_TENANT_ID"
client_id = "YOUR_CLIENT_ID"
scope = ["YOUR_SCOPE"]
auth = BearerAuth.get_auth(
tenantID=tenantID,
clientID=client_id,
scopes=scope
)
# Supports requests
response = requests.get("https://www.example.com/", auth=auth)
# and httpx
client = httpx.Client()
response = client.get("https://www.example.com/", auth=auth)
````
## Installing
Clone and install using poetry or install from pypi using pip.
````
pip install msal_bearer
````
## Alternatives
Other similar packages include https://pypi.org/project/msal-requests-auth/ (for confidential client applications) and https://pypi.org/project/msal-interactive-token-acquirer/ (no caching implemented).
Raw data
{
"_id": null,
"home_page": "https://github.com/Equinor/msal-bearer",
"name": "msal-bearer",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "\u00c5smund V\u00e5ge Fannemel",
"author_email": "asmf@equinor.com",
"download_url": "https://files.pythonhosted.org/packages/f8/58/2b571830f59cc5c42180b76b332d94b0dd82806975bdd5ec92a2b00cc96c/msal_bearer-1.1.3.tar.gz",
"platform": null,
"description": "# msal-bearer\nPython package to get authorization token interactively for a msal public client application supporting local cache and refreshing the token.\n\n## Usage\n\n\n````\nfrom msal_bearer.BearerAuth import BearerAuth\n\ntenantID = \"YOUR_TENANT_ID\"\nclient_id = \"YOUR_CLIENT_ID\"\nscope = [\"YOUR_SCOPE\"]\n\nauth = BearerAuth.get_auth(\n tenantID=tenantID,\n clientID=client_id,\n scopes=scope\n)\n\n# Supports requests\nresponse = requests.get(\"https://www.example.com/\", auth=auth)\n\n# and httpx\nclient = httpx.Client()\nresponse = client.get(\"https://www.example.com/\", auth=auth)\n\n````\n\n\n## Installing\nClone and install using poetry or install from pypi using pip. \n\n````\npip install msal_bearer\n````\n\n\n## Alternatives\nOther similar packages include https://pypi.org/project/msal-requests-auth/ (for confidential client applications) and https://pypi.org/project/msal-interactive-token-acquirer/ (no caching implemented).\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python package to get auth token interactively for a public client application using msal and msal-extension for caching.",
"version": "1.1.3",
"project_urls": {
"Homepage": "https://github.com/Equinor/msal-bearer",
"Repository": "https://github.com/Equinor/msal-bearer"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b2d699949bec344432391078ccea30fcee37be317c47cb5231ae4aed30f4d46f",
"md5": "18aeee105ffbbebbea4279177c20eefc",
"sha256": "b669ef806d606484fc87ccb688858347c6d122cf19cbddfcec745170afbf0492"
},
"downloads": -1,
"filename": "msal_bearer-1.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "18aeee105ffbbebbea4279177c20eefc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 4606,
"upload_time": "2024-10-23T20:09:00",
"upload_time_iso_8601": "2024-10-23T20:09:00.184063Z",
"url": "https://files.pythonhosted.org/packages/b2/d6/99949bec344432391078ccea30fcee37be317c47cb5231ae4aed30f4d46f/msal_bearer-1.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f8582b571830f59cc5c42180b76b332d94b0dd82806975bdd5ec92a2b00cc96c",
"md5": "50d58bbc8faf8ac81fc9e4f372f9e647",
"sha256": "3ea5cd38c639d82629352cb1bb16d2a9b075dc5b642b642e3a11306dab084efd"
},
"downloads": -1,
"filename": "msal_bearer-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "50d58bbc8faf8ac81fc9e4f372f9e647",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 4098,
"upload_time": "2024-10-23T20:09:01",
"upload_time_iso_8601": "2024-10-23T20:09:01.596406Z",
"url": "https://files.pythonhosted.org/packages/f8/58/2b571830f59cc5c42180b76b332d94b0dd82806975bdd5ec92a2b00cc96c/msal_bearer-1.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-23 20:09:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Equinor",
"github_project": "msal-bearer",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "msal-bearer"
}