Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenID Connect Provider in Python

I've been searching how to implement an OpenID Connect provider in python and I have found this library made by Roland Hedberg (it's recommended by OpenID ). But I've read the docs, the examples and I think it examples are overcomplicated for people that have no big knowledge about it (provider, wsgi and cli are mixed).

So my question is: do anyone knows simpler examples or tutorials to implement this library or should I try to implement my provider on top of an OAuth2 library?

like image 437
fernandosavio Avatar asked Jan 28 '15 13:01

fernandosavio


1 Answers

Just in case someone found this question. I've been working on Authlib for a long time, before Authlib I created Flask-OAuthlib. With Authlib v0.6+, you can easily create an OpenID Connect service in Flask (Django integration is coming).

Here are some resources that you may need:

  1. GitHub: https://github.com/lepture/authlib
  2. Example on OAuth 2: https://github.com/authlib/example-oauth2-server
  3. Documentation on OAuth 2: https://docs.authlib.org/en/latest/flask/oauth2.html
  4. Documentation on OpenID Connect: https://docs.authlib.org/en/latest/flask/oidc.html

I'll update the answer when an example of oidc available.

like image 74
lepture Avatar answered Oct 16 '22 02:10

lepture