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 agent
token, issuer, expires_at = agent.get_token_response("iam")
token, issuer, expires_at = agent.get_token_response("iam", 60)
tokenresponse = agent.get_token_response("iam", application_hint="Example-Py-App")
tokenresponse = agent.get_token_response("iam", 60, "Example-Py-App")
tokenresponse = agent.get_token_response("iam", 60, "Example-Py-App", "openid profile email")
tokenresponse = agent.get_token_response("iam", 60, "Example-Py-App", "openid profile email", "foo bar")
token = agent.get_access_token("iam", 60, "Example-Py-App")
token, issuer, expires_at = agent.get_token_response_by_issuer_url("https://issuer.example.com", 60, "Example-Py-App")
token = agent.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.
Project details
Release history Release notifications | RSS feed
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.3.2.tar.gz
(4.1 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a40fbd682317256c5fb4d2c5590161d81dd4350d341a43d80bb8837a6d9f77e2 |
|
MD5 | aafd991ede531dd7ecc250296bee8125 |
|
BLAKE2b-256 | 26fdf8e8284a8e976fa9a85ce37641ec81f194eb30be7e4edce90f4aa5544dc9 |
Close
Hashes for liboidcagent-0.3.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccddba509ce9453ef935fda5b19c11ae87140a1b172693357470755ac58f497 |
|
MD5 | efab7e2897b1130a2cec6512bf248459 |
|
BLAKE2b-256 | d11880ecc44cd506de65cc6a35ecb3d9933912db139bc6d5c6749c62f7479dca |