A python library for requesting OpenID Connect access tokens from oidc-agent.
Project description
liboidc-agent
A python library for requesting OpenID Connect access tokens from oidc-agent.
Usage
import liboidc-agent
token, issuer, expires_at = get_token_response("iam")
token, issuer, expires_at, get_token_response("iam", 60)
tokenresponse = get_token_response("iam", application_hint="Example-Py-App")
tokenresponse = get_token_response("iam", 60, "Example-Py-App")
tokenresponse = get_token_response("iam", 60, "Example-Py-App", "openid profile email")
token = get_access_token("iam", 60, "Example-Py-App")
token, issuer, expires_at = get_token_response_by_issuer("https://issuer.example.com", 60, "Example-Py-App")
token = get_access_token_by_issuer_url("https://issuer.example.com", 60, "Example-Py-App")
Installation
pip install liboidc-agent
License
liboidc-agent
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.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for liboidcagent-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d4ef493239a8ed72a21b2d63ac86df14e751ca546b6eb86f2af7d35a4b9e16 |
|
MD5 | 2f93bd46b5283e54cb1ca469886144a7 |
|
BLAKE2b-256 | 8d7ed864fd369f3f84ad9b3a8a4ef693f3e76877264212ed0a598a0d1bd2b434 |