Skip to main content

A python library for requesting OpenID Connect access tokens from oidc-agent.

Project description

liboidcagent

A python library for requesting OpenID Connect access tokens from oidc-agent.

Usage

import liboidcagent as oidc

token, issuer, expires_at = oidc.get_token_response("iam")
token, issuer, expires_at, oidc.get_token_response("iam", 60)
tokenresponse = oidc.get_token_response("iam", application_hint="Example-Py-App")
tokenresponse = oidc.get_token_response("iam", 60, "Example-Py-App")
tokenresponse = oidc.get_token_response("iam", 60, "Example-Py-App", "openid profile email")

token = oidc.get_access_token("iam", 60, "Example-Py-App")

token, issuer, expires_at = oidc.get_token_response_by_issuer("https://issuer.example.com", 60, "Example-Py-App")

token = oidc.get_access_token_by_issuer_url("https://issuer.example.com", 60, "Example-Py-App")

Installation

pip install liboidcagent

License

liboidcagent is provided under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liboidcagent-0.1.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liboidcagent-0.1.4-py2-none-any.whl (5.6 kB view details)

Uploaded Python 2

File details

Details for the file liboidcagent-0.1.4.tar.gz.

File metadata

  • Download URL: liboidcagent-0.1.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for liboidcagent-0.1.4.tar.gz
Algorithm Hash digest
SHA256 16118a25a08cb4815d166907439848631f29a4a67b03673c6603758d5c10d994
MD5 5fecdd78e0d2f2c4933184ef23ebb117
BLAKE2b-256 e77813a5adfb68570360e485c74a93e53f4919462b3b8d701b3128e4ab86a8ef

See more details on using hashes here.

File details

Details for the file liboidcagent-0.1.4-py2-none-any.whl.

File metadata

  • Download URL: liboidcagent-0.1.4-py2-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for liboidcagent-0.1.4-py2-none-any.whl
Algorithm Hash digest
SHA256 056cf8cdd0ace2888b6cacad23c7220728b7811a7ae7dbcba4ab4c3115f7dc26
MD5 2e93113a1fd81d4f67d78184c0a9c425
BLAKE2b-256 db4bf1c714637b7707f3a477ec66d2903aea153865b067f585c1f09c4ccd1ec9

See more details on using hashes here.

Supported by

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