303 Commits

Author SHA1 Message Date
9e499791de Bump version: 3.0.3 → 3.0.4 2020-08-13 14:03:40 +02:00
657df06e53 Bump version: 3.0.2 → 3.0.3 2020-07-21 15:26:13 +02:00
28f4eed5e5 Bump version: 3.0.1 → 3.0.2 2020-07-20 16:35:26 +02:00
6334a4b911 Fix #261: improve email query in MongoDB 2020-07-20 16:18:53 +02:00
1b6c832b28 Bump version: 3.0.0 → 3.0.1 2020-07-13 14:20:50 +02:00
0134a43fad Bump version: 2.0.1 → 3.0.0 2020-07-09 18:44:50 +02:00
b7dbdf6ea6 Fix #245 : handle email as case insensitive while retrieving user in DB (#250)
* Add unit tests to enforce email case insensitivity

* Handle email as case insentitive while retrieving user in DB

* Apply isort/black

* Add migration doc
2020-07-09 18:44:25 +02:00
e63a67ead3 Bump packages and apply black 2020-07-09 17:28:41 +02:00
1b24d307a8 Bump version: 2.0.0 → 2.0.1 2020-06-27 17:23:13 +02:00
efad0e0fef fix "Swagger issue for endpoints register & update" (#233)
* fix: Change on the inheritance model, according to the documentation for the request body parameters. #171

* fix: Changes on the documentation examples to fix the inheritance problem when passing the User class (for create or update only passing the pydantic one) #171

* fix: Changes on the documentation examples to fix the inheritance problem when passing the User class (for create or update only passing the pydantic one) #171

* Put back inheritance on update model and factorize create_update_dict methods

Co-authored-by: François Voron <fvoron@gmail.com>
2020-06-27 17:19:53 +02:00
111af6e2eb Bump version: 1.1.1 → 2.0.0 2020-06-15 14:35:30 +02:00
75147a7071 fix documentation tokenUrl (#210)
* fix documentation tokenUrl

* Change default login tokenUrl
2020-06-15 14:33:52 +02:00
224a311792 fix "Authorization: Bearer Undefined" on Swagger (#213)
* fix "Authorization: Bearer Undefined" on Swagger

* updating pytest to recognize access_token

* fix pytest KeyError

* adding changes requested (add token_type to documentation and tests)

* fix documentation
2020-06-15 14:04:03 +02:00
6ff5adfdf2 Fix import error when OAuth is not installed 2020-06-02 07:57:42 +02:00
3fab5e5bbb Bump version: 1.1.0 → 1.1.1 2020-05-26 16:36:58 +02:00
1c20b4c58a Bump version: 1.0.0 → 1.1.0 2020-05-25 08:13:50 +02:00
9508768502 Add get_optional_* dependency callables 2020-05-25 08:13:42 +02:00
71ca7d85ed Remove default router on FastAPIUsers 2020-05-24 10:50:14 +02:00
ee8908e066 Bump version: 0.8.1 → 1.0.0 2020-05-24 10:29:56 +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
0a0dcadfdc Use real UUID for User id. and OAuthAccount id. (#198)
* Use UUID for user id and oauth account id

* Update documentation for UUID

* Tweak GUID definition of SQLAlchemy to match Tortoise ORM one

* Write migration doc
2020-05-21 16:40:33 +02:00
d814b48280 Bump version: 0.8.0 → 0.8.1 2020-05-19 08:02:20 +02:00
6292c15d77 Bump version: 0.7.3 → 0.8.0 2020-04-25 14:36:07 +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
985602fbd1 Bump version: 0.7.2 → 0.7.3 2020-04-09 17:14:04 +02:00
b5d647a2a8 Bump version: 0.7.1 → 0.7.2 2020-04-04 10:10:29 +02:00
1cde311582 Bump version: 0.7.0 → 0.7.1 2020-03-05 07:43:00 +01:00
3e41826c85 Bump version: 0.6.6 → 0.7.0 2020-03-01 08:29:22 +01:00
ce2d96fd82 Bump version: 0.6.5 → 0.6.6 2020-02-07 08:47:59 +01:00
523ecddd06 Bump version: 0.6.4 → 0.6.5 2020-02-05 09:43:52 +01:00
e58f18582e Fix tortoise import error (#97)
I was getting an import error using tortoise 0.1.1: `ImportError: cannot import name 'Model' from 'tortoise'`.  These few changes seemed to have resolved the issue.
2020-02-05 09:20:28 +01:00
74d1eaea64 Bump version: 0.6.3 → 0.6.4 2020-02-03 10:55:42 +01:00
9353bb79cb Implement on_after_update event handle 2020-02-03 10:48:53 +01:00
05b1df9a16 Implement logout route 2020-02-03 10:12:33 +01:00
d1006667d0 Bump version: 0.6.2 → 0.6.3 2020-01-20 12:22:05 +01:00
325882436c Fix on_after_register handler not being passed Request with OAuth 2020-01-20 12:22:02 +01:00
2585b4fd1c Bump version: 0.6.1 → 0.6.2 2020-01-20 11:01:36 +01:00
57a37150a0 Add Request in event_handlers arguments 2020-01-20 10:46:45 +01:00
7279b44e19 Bump version: 0.6.0 → 0.6.1 2020-01-17 16:18:57 +01:00
fff167043a Fix authorize not using arbitrary redirect url 2020-01-17 16:18:49 +01:00
cc727ac324 Bump version: 0.5.1 → 0.6.0 2020-01-17 11:47:10 +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
8fe1997dbc Bump version: 0.5.0 → 0.5.1 2020-01-11 10:55:15 +01:00
dbbb9144b0 Expose more options for Cookie authentication 2020-01-11 10:55:02 +01:00
e743e48cc5 Bump version: 0.4.1 → 0.5.0 2020-01-04 15:58:16 +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
935bccf528 Bump version: 0.4.0 → 0.4.1 2019-12-17 15:50:12 +01:00
7817d372c6 Fix #77: use CharField for PK in Tortoise adapter 2019-12-17 15:49:30 +01:00
edb887f3f1 Bump version: 0.3.2 → 0.4.0 2019-12-04 13:34:23 +01:00