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:配置文件

在您具体项目中,您可以用 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 details)

Uploaded Source

File details

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

File metadata

  • Download URL: flask-oidc-validator-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-validator-1.2.tar.gz
Algorithm Hash digest
SHA256 60367ed09ec91e0e80d2710beceeb0a419e1957b936cedc07f0c9522ea2bb356
MD5 2eae3331928f0660e3963f4949b5d3bb
BLAKE2b-256 1dd42c6690bcf54ae8d2e49f9f9347eb3707c3a3b31a6ece9893fc4f5de56d25

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