Commit Graph

69 Commits

Author SHA1 Message Date
François Voron
7c5573fbbc Bump dependencies 2021-02-06 11:07:52 +01:00
François Voron
968bc16585 Add depreciation warning to predefined authenticator deps 2021-01-13 18:53:38 +01:00
François Voron
2829824a95 Fix #438: issue while retrieving OAuth accounts with PSQL 2021-01-12 10:53:40 +01:00
François Voron
92c523c379 Upgrade to pyjwt==2.0.0 2020-12-24 09:47:34 +01:00
François Voron
8d008fc6a6 Bump dependencies 2020-12-23 17:31:41 +01:00
François Voron
d5ae105d08 Bump dependencies 2020-11-30 14:08:16 +01:00
François Voron
31168ce9d3 Fix #401: missing typing-extensions dependency 2020-11-30 13:44:19 +01:00
François Voron
2026fb6fff Bump packages 2020-11-17 08:15:56 +01:00
François Voron
ad56933836 Bump dependencies 2020-10-14 14:11:51 +02:00
François Voron
f3298f3c11 Bump dependencies 2020-09-30 08:17:02 +02:00
François Voron
8f07b58016 Bump dependencies 2020-08-26 15:47:56 +02:00
François Voron
0d8e0730fc Bump dependencies 2020-08-13 14:03:19 +02:00
François Voron
754b6f71d9 Bump dependencies 2020-07-21 15:25:16 +02:00
François Voron
8457083093 Bump dependencies 2020-07-13 14:20:41 +02:00
François Voron
624172ccf9 Bump fastapi dependency 2020-06-15 14:17:44 +02:00
François Voron
787c2b67b8 Bump dependencies 2020-06-15 14:09:05 +02:00
François Voron
b9cea9c1ed Bump fastapi dependency 2020-05-26 16:36:53 +02:00
François Voron
b7d3023f7f Bump email-validator 2020-05-24 10:29:27 +02:00
François Voron
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
François Voron
bf5c122e6d Bump dependencies 2020-05-19 08:02:08 +02:00
François Voron
bf0c924501 Complete documentation with a flow page with curl examples 2020-04-25 14:32:08 +02:00
François Voron
f37e4b90df Bump databases >=0.3.0,<0.4 2020-04-25 11:37:20 +02:00
dependabot-preview[bot]
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
François Voron
00c07e34a8 Bump dependencies 2020-04-09 17:12:28 +02:00
François Voron
05286853a6 Bump dependencies 2020-04-04 10:10:05 +02:00
dependabot-preview[bot]
9c23c7cc49 Bump tortoise-orm from 0.15.18 to 0.16.0 (#133)
* Bump tortoise-orm from 0.15.18 to 0.16.0

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.18 to 0.16.0.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.18...0.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm in pyproject

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2020-03-16 07:31:25 +01:00
dependabot-preview[bot]
9281962c2e Bump sqlalchemy from 1.3.13 to 1.3.14 (#125)
* Bump sqlalchemy from 1.3.13 to 1.3.14

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.13 to 1.3.14.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Make sqlalchemy dep version less restrictive

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2020-03-11 08:28:38 +01:00
François Voron
50b6d257a4 Bump dependencies 2020-03-05 07:42:54 +01:00
François Voron
efcd80d6a0 Bump fastapi and tortoise-orm 2020-03-01 08:29:13 +01:00
François Voron
11cdf60038 Bump packages 2020-02-25 08:46:52 +01:00
François Voron
0b68bd5f5d Bump dependencies 2020-02-13 15:26:16 +01:00
François Voron
ffc45e5368 Bump dependencies 2020-02-07 08:47:55 +01:00
dependabot-preview[bot]
cc6b3a0d8f Bump fastapi from 0.47.1 to 0.48.0 (#99)
* Bump fastapi from 0.47.1 to 0.48.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.47.1 to 0.48.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.47.1...0.48.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi

Co-authored-by: François Voron <fvoron@gmail.com>
2020-02-05 09:39:57 +01:00
dependabot-preview[bot]
0fdd0fd070 Bump sqlalchemy from 1.3.12 to 1.3.13 (#94)
* Bump sqlalchemy from 1.3.12 to 1.3.13

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.12 to 1.3.13.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlalchemy==1.3.13

Co-authored-by: François Voron <fvoron@gmail.com>
2020-02-03 09:53:18 +01:00
François Voron
020013118d Pin pytest-mock dependency to its git master branch 2020-02-03 08:28:46 +01:00
dependabot-preview[bot]
4a7f9e750f Bump fastapi from 0.46.0 to 0.47.1 (#92)
* Bump fastapi from 0.46.0 to 0.47.1

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.46.0 to 0.47.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.46.0...0.47.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Add Request in event_handlers arguments

* Bump fastapi

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-20 11:01:04 +01:00
dependabot-preview[bot]
2a537fbb2d Bump tortoise-orm from 0.15.7 to 0.15.9 (#91)
* Bump tortoise-orm from 0.15.7 to 0.15.9

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.7 to 0.15.9.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.7...0.15.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-20 10:49:40 +01:00
François Voron
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
dependabot-preview[bot]
c537b58d52 Bump fastapi from 0.45.0 to 0.46.0 (#86)
* Bump fastapi from 0.45.0 to 0.46.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.45.0...0.46.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi in pyproject

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-09 09:41:56 +01:00
dependabot-preview[bot]
c903b30161 Bump tortoise-orm from 0.15.5 to 0.15.7 (#82)
* Bump tortoise-orm from 0.15.5 to 0.15.7

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.5 to 0.15.7.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.5...0.15.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm from 0.15.5 to 0.15.7

Co-authored-by: François Voron <fvoron@gmail.com>
2019-12-29 11:42:14 +01:00
dependabot-preview[bot]
bdfef36866 Bump sqlalchemy from 1.3.11 to 1.3.12 (#76)
* Bump sqlalchemy from 1.3.11 to 1.3.12

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.11 to 1.3.12.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlalchemy from 1.3.11 to 1.3.12 [pyproject]
2019-12-17 07:18:00 +01:00
dependabot-preview[bot]
cf52f5c61d Bump fastapi from 0.44.1 to 0.45.0 (#73)
* Bump fastapi from 0.44.1 to 0.45.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.44.1 to 0.45.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.44.1...0.45.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi from 0.44.1 to 0.45.0 in pyproject
2019-12-12 07:58:44 +01:00
dependabot-preview[bot]
4883c87222 Bump motor from 2.0.0 to 2.1.0 (#74)
* Bump motor from 2.0.0 to 2.1.0

Bumps [motor](https://github.com/mongodb/motor) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/mongodb/motor/releases)
- [Changelog](https://github.com/mongodb/motor/blob/master/doc/changelog.rst)
- [Commits](https://github.com/mongodb/motor/compare/2.0.0...2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

*  Bump motor from 2.0.0 to 2.1.0
2019-12-12 07:40:04 +01:00
dependabot-preview[bot]
91cdfafa8b Bump tortoise-orm from 0.15.4 to 0.15.5 (#71)
Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.4 to 0.15.5.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.4...0.15.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-10 15:09:37 +01:00
dependabot-preview[bot]
713bb9e490 Bump fastapi from 0.44.0 to 0.44.1 (#69)
Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.44.0 to 0.44.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.44.0...0.44.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-05 06:42:33 +01:00
dependabot-preview[bot]
5e4c7996de Bump tortoise-orm from 0.15.1 to 0.15.4 (#67)
* Bump tortoise-orm from 0.15.1 to 0.15.4

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.1 to 0.15.4.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.1...0.15.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise ==0.15.4 in pyproject.toml
2019-12-04 07:21:55 +01:00
prostomarkeloff
b5b0bbbb01 Tortoise ORM support (#59)
* add tortoise to dependencies

* add tortoise as optional dependency in pyproject.toml

* add tortoise support (tests needed)

* Add tortoise support (also defined orm_mode in pydantic model

* tests for tortoise support

* format by black

* docs for tortoise

* delete type annotations

* delete underscore

* do it in 1 line

* add 1 line before yield

* fix in docs

* fix bug and add annotation for test

* Tweak documentation and fix Tortoise error about id update

* Improve Tortoise coverage by using get instead of filter

* Fix Pipfile.lock
2019-12-03 21:24:27 +01:00
dependabot-preview[bot]
59b8f144d7 Bump fastapi from 0.43.0 to 0.44.0 (#63)
* Bump fastapi from 0.43.0 to 0.44.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.43.0...0.44.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix breaking changes and depreciation following fastapi 0.44.0

* Bump fastapi==0.44.0 in pyproject.toml
2019-11-28 07:33:38 +01:00
dependabot-preview[bot]
7c87039fc7 Bump fastapi from 0.42.0 to 0.43.0 (#56)
* Bump fastapi from 0.42.0 to 0.43.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.42.0...0.43.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi==0.43.0 in pyproject.toml
2019-11-25 07:46:17 +01:00
dependabot-preview[bot]
f482f2c7ff Bump passlib from 1.7.1 to 1.7.2 (#57)
Bumps [passlib](https://bitbucket.org/ecollins/passlib) from 1.7.1 to 1.7.2.
- [Commits](https://bitbucket.org/ecollins/passlib/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 07:18:27 +01:00