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.

Source Distribution

flask-oidc-validate-1.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file flask-oidc-validate-1.2.tar.gz.

File metadata

  • Download URL: flask-oidc-validate-1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0.post20170921 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.3

File hashes

Hashes for flask-oidc-validate-1.2.tar.gz
Algorithm Hash digest
SHA256 f41532eb4e107816e7a2187b7fd7c1ff605f1297338e2ac31841dc564d72b02e
MD5 908a4228ca45ba2addb8c01f3b390158
BLAKE2b-256 9dea54cb81c5afe6abd4e020dad8769bfe6083d3a0a88669cddee4b2dccec98d

See more details on using hashes here.

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