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.0.tar.gz
(3.1 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db246f57b9d5292ec7d75d4a7d8d2946156ef114c3732b6cf3cc71c65866959 |
|
MD5 | dc7516d01849b53ca9f2ef4b1400cff2 |
|
BLAKE2b-256 | cb4ec3a5acd732610e63da1cc1cfabb2dbfd06f45cb4e4b0215ef85c5c85eb4a |
Close
Hashes for liboidcagent-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbeffdb10db936461a77b73072a0afc50e187c93010c3855a0745615f29a2ddb |
|
MD5 | 3249882872494c259e2c42573e51663a |
|
BLAKE2b-256 | 501953d7dd976b99ae6682ddc4d0d1e1928d2d6937a1a487fea02b473e10c04d |