Skip to main content

A flask-oidc to validate IdToken for python

Project description

# oidc-client-validate

基于python语言flask框架的oidc认证

创建时间:2020.01.24:

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

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

app.py:为测试项目启动文件 IdTokenValidatorForRs.py:Resource端认证代码 IdTokenValidatorForClient.py:Client端认证代码 settings.json:配置文件

Project details


Download files

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

Files for flask-oidc-validate, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size flask-oidc-validate-1.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page