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.0.tar.gz
(4.1 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d9652d29096f7ff6e00edbd194d3a244de512b874cd8cb81b6e8dd22f290e59 |
|
MD5 | 1413ec9666478c3c67d042e3f7a52cac |
|
BLAKE2b-256 | 62d12b0344fb2b81eb06e9f25c9098893c75a4782a449f3bbd0c91d465e2486b |
Close
Hashes for liboidcagent-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f1e29b92d79195fa61bfb06903d00dd82748101078cd5daffd30914e7ff0ef8 |
|
MD5 | d529bd57388c8c3c30a77cbc5f2a40df |
|
BLAKE2b-256 | 56a52f098db04d18de845e7310e67c19ada739587f4434308616b17adde8e652 |