Skip to main content

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)

Uploaded Source

Built Distribution

msal_bearer-0.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page