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.2.2.tar.gz
(3.2 kB
view hashes)
Built Distributions
Close
Hashes for liboidcagent-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32d4e9bcd6daa3ebb71903cd9681f0bda214e19ab66c5b6088ec72bf29eb1eb2 |
|
MD5 | c604a4edd6670ca032968d8bcf7df1ca |
|
BLAKE2b-256 | e0d23e3ad0b399c868d70df5f649c973d5dad9dfd9855042cf5f301e8118fd54 |
Close
Hashes for liboidcagent-0.2.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02430d511a0cfe257798f25a289162e79fb1dc94b39bff5744c09bd7ac5acaa8 |
|
MD5 | 96faab989a0554c0087c70c420fc2d27 |
|
BLAKE2b-256 | 95917e90e04c062784f0076ee15d21146c41b15b7f27f61afd5de38f24fc4a9a |