252 Commits

Author SHA1 Message Date
70f0419490 Correct docs for User model (#89) 2020-01-19 20:52:09 +01:00
7279b44e19 Bump version: 0.6.0 → 0.6.1 v0.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 v0.6.0 2020-01-17 11:47:10 +01:00
159c8b967e Update README 2020-01-17 11:45:25 +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
54aefea59a Bump flit from 2.1.0 to 2.2.0 (#87)
Bumps [flit](https://github.com/takluyver/flit) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/takluyver/flit/releases)
- [Changelog](https://github.com/takluyver/flit/blob/master/doc/history.rst)
- [Commits](https://github.com/takluyver/flit/compare/2.1.0...2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 13:07:56 +01:00
8fe1997dbc Bump version: 0.5.0 → 0.5.1 v0.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
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
ee0ade8909 Bump pytest-mock from 1.13.0 to 2.0.0 (#85)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.13.0 to 2.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.13.0...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-08 08:15:24 +01:00
e743e48cc5 Bump version: 0.4.1 → 0.5.0 v0.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
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
24664f3fc3 Bump pymdown-extensions from 6.2 to 6.2.1 (#80)
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 6.2 to 6.2.1.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/6.2.0...6.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-24 14:50:06 +01:00
394afd3195 Bump mypy from 0.760 to 0.761 (#79)
Bumps [mypy](https://github.com/python/mypy) from 0.760 to 0.761.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.760...v0.761)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-20 07:12:31 +01:00
3fc15ceffe Bump mypy from 0.750 to 0.760 (#78)
Bumps [mypy](https://github.com/python/mypy) from 0.750 to 0.760.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.750...v0.760)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-18 08:10:28 +01:00
935bccf528 Bump version: 0.4.0 → 0.4.1 v0.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
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
7bc7ccfa09 Bump pytest from 5.3.1 to 5.3.2 (#75)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.1 to 5.3.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.1...5.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 07:16:10 +01:00
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
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
8b346ddfcc Bump mkdocs-material from 4.5.1 to 4.6.0 (#72)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.5.1 to 4.6.0.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.5.1...4.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-12 07:16:31 +01:00
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
f27b28d914 Bump pytest-mock from 1.12.1 to 1.13.0 (#70)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.12.1...v1.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 15:23:57 +01:00
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
edb887f3f1 Bump version: 0.3.2 → 0.4.0 v0.4.0 2019-12-04 13:34:23 +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
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
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
358150bbff Bump mkdocs-material from 4.5.0 to 4.5.1 (#66)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.5.0...4.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-03 10:50:02 +01:00
e488fd02ac Bump pygments from 2.5.1 to 2.5.2 (#65)
Bumps [pygments](https://github.com/pygments/pygments) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.5.1...2.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 07:19:29 +01:00
0736ab372c Bump mypy from 0.740 to 0.750 (#64)
Bumps [mypy](https://github.com/python/mypy) from 0.740 to 0.750.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.740...v0.750)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 07:19:16 +01:00
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
3cfd402253 Bump flit from 2.0.2 to 2.1.0 (#62)
Bumps [flit](https://github.com/takluyver/flit) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/takluyver/flit/releases)
- [Changelog](https://github.com/takluyver/flit/blob/master/doc/history.rst)
- [Commits](https://github.com/takluyver/flit/commits/2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:58:19 +01:00
6522d99935 Bump pytest from 5.3.0 to 5.3.1 (#60)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.0...5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:50:30 +01:00
d5b249e90b Bump pygments from 2.4.2 to 2.5.1 (#61)
Bumps [pygments](https://github.com/pygments/pygments) from 2.4.2 to 2.5.1.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.4.2...2.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:50:17 +01:00
f0178d0e0d Bump version: 0.3.1 → 0.3.2 v0.3.2 2019-11-25 12:56:16 +01:00
280a2e253a Add Python 3.8 to build matrix (#58)
* Add Python 3.8 to build matrix

* Force pipenv to use matrix Python  version

* Put release step in separate job

* Fix build.yml workflow
2019-11-25 12:54:32 +01:00
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
2052a8bef3 Bump flit from 1.3 to 2.0.2 (#55)
* Bump flit from 1.3 to 2.0.2

Bumps [flit](https://github.com/takluyver/flit) from 1.3 to 2.0.2.
- [Release notes](https://github.com/takluyver/flit/releases)
- [Changelog](https://github.com/takluyver/flit/blob/master/doc/history.rst)
- [Commits](https://github.com/takluyver/flit/commits)

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

* Update Flit build settings following 2.x changes
2019-11-25 07:38:50 +01:00
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
a1dd77531c Bump pytest-mock from 1.12.0 to 1.12.1 (#53)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.12.0...v1.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-21 09:09:14 +01:00
766157d4f5 Bump pytest-mock from 1.11.2 to 1.12.0 (#52)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.11.2 to 1.12.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.11.2...v1.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 11:39:36 +01:00
d5ec35a22f Bump pytest from 5.2.4 to 5.3.0 (#51)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.4 to 5.3.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.4...5.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 11:39:19 +01:00
f3f473b853 Bump mkdocs-material from 4.4.3 to 4.5.0 (#50)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.4.3...4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-19 14:56:43 +01:00
9ba291b4ee Bump pymdown-extensions from 6.1 to 6.2 (#48)
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 6.1 to 6.2.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/6.1.0...6.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 06:36:00 +01:00
07c5dab89e Bump pytest from 5.2.3 to 5.2.4 (#49)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.3 to 5.2.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.3...5.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 06:35:41 +01:00
ae09558a91 Bump pytest from 5.2.2 to 5.2.3 (#46)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...5.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-17 10:03:48 +01:00