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.2.1.tar.gz
(3.1 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc500158bf86d693b410875f7d30f1e0dc81e95295d726965cd2350dacbc3809 |
|
MD5 | cd9faea8389ca15b6d3ea398b5555293 |
|
BLAKE2b-256 | 68f3147ed2d630cdd6b2ce14c5523c55db75a7e6b3efbbbd8caf174f23965b15 |
Close
Hashes for liboidcagent-0.2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf1701e4d42427abc480aa98c53d65d3ea770c9f68abc2d6b68f7fc9cdcef99 |
|
MD5 | 02d23ce3818d8fca5edb0044306cd361 |
|
BLAKE2b-256 | a0b7bbf910004f2dd1ffa2a29a0b1ba446d0a3c419449924a616ec3318291fd7 |