codemation / easyauth

Create a centralized Authentication and Authorization token server. Easily secure FastAPI endpoints based on Users, Groups, Roles or Permissions with very little database usage.
https://easyauth.readthedocs.io/en/latest/
MIT License
553 stars 52 forks source link

Fix EmailConfig creation #90

Closed Rictus closed 1 year ago

codemation commented 1 year ago

Hey @Rictus , thanks for the contribution & patience so far.

The introduction of fastapi >0.92.0 introduced breaking changes to the documented usage of easyauth & corresponding tests. I have since adapted the code to work with later fastapi versions, but the new requirement of adding middleware pre-startup also means that EasyAuthServer and EasyAuthClient must be created outside of 'startup' . The changes in #89 mean of course a rebase will be required on this PR, after which tests should again pass.