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 oidc
token, issuer, expires_at = oidc.get_token_response("iam")
token, issuer, expires_at, oidc.get_token_response("iam", 60)
tokenresponse = oidc.get_token_response("iam", application_hint="Example-Py-App")
tokenresponse = oidc.get_token_response("iam", 60, "Example-Py-App")
tokenresponse = oidc.get_token_response("iam", 60, "Example-Py-App", "openid profile email")
token = oidc.get_access_token("iam", 60, "Example-Py-App")
token, issuer, expires_at = oidc.get_token_response_by_issuer_url("https://issuer.example.com", 60, "Example-Py-App")
token = oidc.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.5.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for liboidcagent-0.1.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89e62f4c5f05b308b61507353ccc787e1564b80735da0eecbd772809c9d7b0c |
|
MD5 | 5774fda5239fc8d87f754a8a19c28992 |
|
BLAKE2b-256 | 3fe30ab53b414cd1e76ad5c689b36b59af20556f56c94d2b6f78d59076062389 |