Skip to main content

A flask-oidc to validate IdToken for python

Project description

# oidc-client-validate



python项目作为Resource或者Client通过接口或其他方式被调用,获取资源数据。对IdToken进行校验; 必须配置issuer信息,Resource端可以不配置client_id;Client端一定要配置client_id 本项目主要列举了放在接口装饰器形式和全局beforeRequest配置两种方式,也可以添加到装饰器中请自行添加;

直接下载项目 python app.py可以启动测试例子 测试接口为 http://localhost:5443/test (要在Headers里配置 Authorization:Bearer +你的IdToken)为测试项目启动文件端认证代码端认证代码 settings.json:配置文件

在您具体项目中,您可以用 pip install flask-oidc-validate 来安装这个依赖直接使用

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-oidc-validator-1.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page