Python package to get auth token interactively for a public client application using msal and msal-extension for caching.
Project description
msal-bearer
Python package to get auth token interactively for a msal public client application and cache it locally.
Usage
tenantID = "YOUR_TENANT_ID"
client_id = "YOUR_CLIENT_ID"
scope = ["YOUR_SCOPE"]
auth = BearerAuth.get_bearer_token_auth(
tenantID=tenantID,
clientID=client_id,
scopes=scope
)
NB! Delegated scopes should include client_id of where scope is from.
## Installing
Install using pip or poetry.
pip install bearerauth
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
msal_bearer-0.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for msal_bearer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b53736a0422c48489d8a8450c6e2c53c1abcaaa627e9ea6d87b04d99c4b73bc |
|
MD5 | 8c8b0a6fe07dc31a8e2ccb60f81a63bb |
|
BLAKE2b-256 | b4b0838ce31f4803e2f242f46467563a242fc1fb9ebaba1aab9e1aab08199804 |