mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 21:24:34 +08:00
Native model and generic ID (#971)
* Use a generic Protocol model for User instead of Pydantic
* Remove UserDB Pydantic schema
* Harmonize schema variable naming to avoid confusions
* Revamp OAuth account model management
* Revamp AccessToken DB strategy to adopt generic model approach
* Make ID a generic instead of forcing UUIDs
* Improve generic typing
* Improve Strategy typing
* Tweak base DB typing
* Don't set Pydantic schemas on FastAPIUsers class: pass it directly on router creation
* Add IntegerIdMixin and export related classes
* Start to revamp doc for V10
* Revamp OAuth documentation
* Fix code highlights
* Write the 9.x.x ➡️ 10.x.x migration doc
* Fix pyproject.toml
This commit is contained in:
@ -37,10 +37,8 @@ Add quickly a registration and authentication system to your [FastAPI](https://f
|
||||
* [X] Dependency callables to inject current user in route
|
||||
* [X] Pluggable password validation
|
||||
* [X] Customizable database backend
|
||||
* [X] [SQLAlchemy ORM async](https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html) backend included
|
||||
* [X] MongoDB async backend included thanks to [mongodb/motor](https://github.com/mongodb/motor)
|
||||
* [X] [Tortoise ORM](https://tortoise-orm.readthedocs.io/en/latest/) backend included
|
||||
* [X] [ormar](https://collerek.github.io/ormar/) backend included
|
||||
* [X] [SQLAlchemy ORM async](https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html) included
|
||||
* [X] [MongoDB with Beanie ODM](https://github.com/roman-right/beanie/) included
|
||||
* [X] Multiple customizable authentication backends
|
||||
* [X] Transports: Authorization header, Cookie
|
||||
* [X] Strategies: JWT, Database, Redis
|
||||
|
||||
Reference in New Issue
Block a user