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
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 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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for liboidcagent-0.1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dff842d4a794d7db70253334285ff6745ef5c7b3c1a766c24255dd957718e31 |
|
MD5 | b88c220c832c739e786872ea97b51c3f |
|
BLAKE2b-256 | b6666a0fb79034febf955008c7f9e61f600e44af4109b40eaee14bf6ca05d89f |