authlib icon indicating copy to clipboard operation
authlib copied to clipboard

Have a WSGI integration example

Open zogzog opened this issue 1 year ago • 0 comments

Problem

There are very nice integration examples but none does seem to address the construction of a WSGI based OAuth2 management suite.

We have to equip a quite complex Flask App with OAuth2 + OIDC and we did it through a significant amount of reverse engineering, following the architecture found in the flask integration folder.

The current integration has some apparent shortcomings:

  • auth seems to be an opt-in feature
  • it is not clear how that would work over a complex Flask app made of numerous blueprints
  • we need auth to be systematic, by default and for all routes
  • we want it to work with other third-party blueprints or even when doing component integration at the WSGI level

Hence we believe the lack of a nice WSGI integration example is a situation that might be fixed.

We might provide an overview of what we did to achieve that, though that might not be good enough for a good integration (what needs to be done is still unclear).

zogzog avatar Jan 23 '24 17:01 zogzog