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.3.tar.gz
(4.9 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40db7595f625a541f51cb832563dc324794a1c673c3100cf712a339cf8a9c975 |
|
MD5 | 78120c98c7420f28028174c009452662 |
|
BLAKE2b-256 | 0fa45e4dd6af52d39a235e48e8d282f64b061807f9053be709aeb695154a238f |
Close
Hashes for liboidcagent-0.3.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d3187add54e962ab0dbb2619530888cc4a2f4ac761acb2ddc4561c9311b5ab |
|
MD5 | 9d9409967b77e9c4c76a856cd25f8659 |
|
BLAKE2b-256 | 32ab58e44db7b3d9b84744ee6a4669df9d0914afdf1e55c092256c0328935f57 |