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.1.tar.gz
(4.1 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1012f33c4c1205776deeed58b2fbce380a1fefdd1b4c1e6df3cd9faee23fd6 |
|
MD5 | 91a5814aab345af6ed3270f74a4a753a |
|
BLAKE2b-256 | fef2792006cd1ca30a307f27cfe63368db6884988c594c0bb5cf5cfba736e0c9 |
Close
Hashes for liboidcagent-0.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f394d75720fd814c58d439fe80a03d5298173f35c8792fe17fa38f3a4be6fc4a |
|
MD5 | 2c245c8e020fbc18dae605a5ade7fbc3 |
|
BLAKE2b-256 | 3360f4bd5fdcb225d625d465363117b0330601337670ed871d5458775845966e |