用于从oidc代理请求openid connect访问令牌的python库。

liboidcagent的Python项目详细描述


liboidcagent

用于请求openid connect访问令牌的python库 oidc-agent

用法

importliboidcagentasagenttoken,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")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")

安装

pip install liboidcagent

许可证

liboidcagentMIT License下提供。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Eclipse内存分析器(MAT):不显示当前正在运行的进程   java Apache Velocity:转义字符不能作为关联数组键用于PHP   不截断零的java格式十进制输出   在另一个类文件中调用时返回空值的java getter   java集合获取连接   java解析json使用Gson登录系统应用程序强制关闭   java DelferredResult带有两个请求的ajax请求   java可降低功耗,同时应使用无线   java BoxLayout无法共享错误?   java如何使用计时器制作闹钟   java使用OAuth2保护RESTWeb服务:一般原则   java在一个jframe上显示多个图像和按钮