Commit Graph

33 Commits

Author SHA1 Message Date
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
dependabot-preview[bot]
09c8e61585 Bump sqlalchemy from 1.3.10 to 1.3.11 (#45)
* Bump sqlalchemy from 1.3.10 to 1.3.11

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.10 to 1.3.11.
- [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.10 to 1.3.11 in pyproject
2019-11-12 13:09:15 +01:00
dependabot-preview[bot]
1006d593bb Bump databases from 0.2.5 to 0.2.6 (#39)
Bumps [databases](https://github.com/encode/databases) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/encode/databases/releases)
- [Commits](https://github.com/encode/databases/compare/0.2.5...0.2.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 07:15:48 +01:00
François Voron
ab0b187f20 Implement MongoDB database adapter (#29)
* Implement MongoDB adapter using motor

* Add mongo container to build pipeline

* Tidy up dependencies

* Update documentation for MongoDB

* Export MongoDB adapter from db package

* Pass black format

* Update README
2019-10-27 16:34:30 +01:00
dependabot-preview[bot]
3719a52549 Bump email-validator from 1.0.4 to 1.0.5 (#23)
* Bump email-validator from 1.0.4 to 1.0.5

Bumps [email-validator](https://github.com/JoshData/python-email-validator) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/JoshData/python-email-validator/releases)
- [Commits](https://github.com/JoshData/python-email-validator/compare/v1.0.4...v1.0.5)

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

* Bump email-validator to 1.0.5 in pyproject.toml
2019-10-21 07:41:20 +02:00
François Voron
13a2e63186 Setup bumpversion 2019-10-20 10:37:22 +02:00
François Voron
a5618399a1 Fix #9: Write documentation (#16)
* Start to write documentation

* Add docs favicon

* Add routes documentation

* Add doc about dependency callables

* Add information about how to make authenticated calls
2019-10-19 18:16:08 +02:00
François Voron
1e1a3dc06a Setup Flit and lock packages versions 2019-10-17 07:48:39 +02:00
François Voron
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
François Voron
99dca57dbb Add missing pytest-mock dependency 2019-10-13 12:09:24 +02:00
François Voron
298b4d54e1 Setup Codecov 2019-10-11 15:29:24 +02:00
François Voron
0112e700ac Improve typing and make User pydantic models dynamic 2019-10-10 13:37:52 +02:00
François Voron
d781a41872 Install Black formatter 2019-10-09 16:52:06 +02:00
François Voron
f6ff897232 Setup Mkdocs 2019-10-09 08:07:49 +02:00
François Voron
11a6c60708 Improve lint tooling 2019-10-09 07:44:28 +02:00
François Voron
06dd8ad22e Implement JWT authentication 2019-10-08 17:18:38 +02:00
François Voron
20bb285f03 Use built-in OAuth2PasswordRequestForm for login 2019-10-06 14:02:42 +02:00
François Voron
bcc88a8b14 Implement working SQLAlchemy DB adapter 2019-10-06 11:00:24 +02:00
François Voron
552f313d76 Add database abstraction 2019-10-06 08:53:13 +02:00
François Voron
4e0b0f6f7d Start foundations 2019-10-05 17:39:37 +02:00