9508768502
Add get_optional_* dependency callables
2020-05-25 08:13:42 +02:00
7721f8dcc1
Revamp authentication routes structure ( #201 )
...
* Fix #68 : use makefun to generate dynamic dependencies
* Remove every Starlette imports
* Split every routers and remove event handlers
* Make users router optional
* Pass after_update handler to get_users_router
* Update documentation
* Remove test file
* Write migration doc for splitted routers
2020-05-24 10:18:01 +02:00
a9ee467518
Remove list endpoint and related methods
2020-04-25 11:46:20 +02:00
639217bb08
Make unit tests full async ( #160 )
...
* Bump pytest-asyncio from 0.10.0 to 0.11.0
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.10.0...v0.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump pytest-asyncio from 0.10.0 to 0.11.0
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.10.0...v0.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Convert tests to full async
* Change deprecated yield_fixture
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2020-04-25 11:34:11 +02:00
9353bb79cb
Implement on_after_update event handle
2020-02-03 10:48:53 +01:00
88b133d41c
Implement OAuth2 flow ( #88 )
...
* Move users router in sub-module
* Factorize UserRouter into EventHandlersRouter
* Implement OAuth registration/login router
* Apply isort/black
* Remove temporary pytest marker
* Fix httpx-oauth version in lock file
* Ensure ON_AFTER_REGISTER event is triggered on OAuth registration
* Add API on FastAPIUsers to generate an OAuth router
* Improve test coverage of FastAPIUsers
* Small fixes
* Write the OAuth documentation
* Fix SQL unit-tests by avoiding collisions in SQLite db files
2020-01-17 11:43:17 +01:00
104a6c6bf5
Inject every models variations and DB model in DB adapters ( #84 )
...
* Inject every model variations in router and DB model in DB adapters
* Update documentation and import Tortoise in db module
* Use path operation decorator dependencies for superuser routes
2020-01-04 15:36:34 +01:00
49deb437a6
Fix #42 : multiple authentication backends ( #47 )
...
* Revamp authentication to allow multiple backends
* Make router generate a login route for each backend
* Apply black
* Remove unused imports
* Complete docstrings
* Update documentation
* WIP add cookie auth
* Complete cookie auth unit tests
* Add documentation for cookie auth
* Fix cookie backend default name
* Don't make cookie return a Response
2019-12-04 13:32:49 +01:00
1811d4aa2d
Add pytest markers and skip procedure for MongoDB tests
2019-11-02 14:09:43 +01:00
b512197094
Use singular Event enum name
2019-10-31 09:59:41 +01:00
9b7ec58800
#21 : Add superuser routes ( #30 )
...
* Add CRU superuser routes
* Add delete method on DB adapters
* Add superuser delete route
* Add superuser routes documentation
* Pass black formatter
2019-10-29 13:32:44 +01:00
3506df31e7
Add ON_AFTER_REGISTER event handler
2019-10-25 08:28:29 +02:00
008a8296f2
Define on_after_forgot_password with a decorator
2019-10-24 09:18:07 +02:00
f2892aa378
#5 Improve test coverage ( #6 )
...
* Improve test coverage of BaseUserDatabase
* Improve unit test isolation
* Improve coverage of router and authentication
2019-10-15 07:54:53 +02:00
49daeff869
Close #3 : forgot/reset password routes
2019-10-13 12:05:10 +02:00
76bb7bf6a5
Implement variant of dep injections to get active/super user
2019-10-11 08:09:47 +02:00
ef6dd2c39c
Implement user-facing API
2019-10-10 18:55:11 +02:00