mblackgeo / flask-cognito-lib

A Flask extension that supports protecting routes with AWS Cognito following OAuth 2.1 best practices
https://mblackgeo.github.io/flask-cognito-lib/
MIT License
59 stars 19 forks source link

flask 3 support #30

Closed iteratelance closed 12 months ago

iteratelance commented 1 year ago

This PR resolves #26, i.e. support for Flask 3 but also has support for setting cookie options

@mblackgeo let me know if you'd like to merge these changes in. Please note that I left support for Flask to have no upper version restriction. Flask = ">=2.0" I have all my changes in this one PR as I thought it might be easier. You can delete them if you don't want them and I can just use my repo but thought I'd offer my changes.

mblackgeo commented 12 months ago

Thanks for this.

I've incorporated the changes to cookie domain and samesite in #31 which is now released. Separately in #32 I've added flask 3 support and improved the CI pipelines to test against Flask 2 and 3 (and python 3.8 to 3.11).