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")
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.1.7.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for liboidcagent-0.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a61cef4e612f3fca91bad1a864a14e59a3ab134048f2107866a61efbb12712f |
|
MD5 | fb840c4bcf5b6bcf0b884c175ad97288 |
|
BLAKE2b-256 | 917c906b53ad9587d8dab039d62368f09e2f07b028c7a85d53adb433303cd285 |