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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file msal_bearer-0.1.0.tar.gz.

File metadata

  • Download URL: msal_bearer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.2.0

File hashes

Hashes for msal_bearer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fd5141734f431e3ae04d660763a07e649fc066f8794cbaf735dc9e0085ba8a1d
MD5 3affc6d16e46520196c84db01b1014cc
BLAKE2b-256 403aae766d3ddd308f1a207e8ddcae72ab30092c6d50b5c3bb31012c7037485c

See more details on using hashes here.

Provenance

File details

Details for the file msal_bearer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: msal_bearer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.2.0

File hashes

Hashes for msal_bearer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b53736a0422c48489d8a8450c6e2c53c1abcaaa627e9ea6d87b04d99c4b73bc
MD5 8c8b0a6fe07dc31a8e2ccb60f81a63bb
BLAKE2b-256 b4b0838ce31f4803e2f242f46467563a242fc1fb9ebaba1aab9e1aab08199804

See more details on using hashes here.

Provenance

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