François Voron
9353bb79cb
Implement on_after_update event handle
2020-02-03 10:48:53 +01:00
François Voron
05b1df9a16
Implement logout route
2020-02-03 10:12:33 +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
François Voron
d1006667d0
Bump version: 0.6.2 → 0.6.3
v0.6.3
2020-01-20 12:22:05 +01:00
François Voron
325882436c
Fix on_after_register handler not being passed Request with OAuth
2020-01-20 12:22:02 +01:00
François Voron
2585b4fd1c
Bump version: 0.6.1 → 0.6.2
v0.6.2
2020-01-20 11:01:36 +01:00
François Voron
61892b0f62
Merge branch 'master' of github.com:frankie567/fastapi-users
2020-01-20 11:01:22 +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
François Voron
20c13c0976
Merge branch 'master' of github.com:frankie567/fastapi-users
2020-01-20 10:51:02 +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
dependabot-preview[bot]
9d45ca08ff
Bump pytest from 5.3.2 to 5.3.3 ( #90 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 5.3.2 to 5.3.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.3.2...5.3.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-20 10:48:31 +01:00
François Voron
e83ca3efed
Merge branch 'master' of github.com:frankie567/fastapi-users
2020-01-20 10:48:04 +01:00
François Voron
57a37150a0
Add Request in event_handlers arguments
2020-01-20 10:46:45 +01:00
Niyas Mohammed
70f0419490
Correct docs for User model ( #89 )
2020-01-19 20:52:09 +01:00
François Voron
7279b44e19
Bump version: 0.6.0 → 0.6.1
v0.6.1
2020-01-17 16:18:57 +01:00
François Voron
fff167043a
Fix authorize not using arbitrary redirect url
2020-01-17 16:18:49 +01:00
François Voron
cc727ac324
Bump version: 0.5.1 → 0.6.0
v0.6.0
2020-01-17 11:47:10 +01:00
François Voron
159c8b967e
Update README
2020-01-17 11:45:25 +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]
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
François Voron
8fe1997dbc
Bump version: 0.5.0 → 0.5.1
v0.5.1
2020-01-11 10:55:15 +01:00
François Voron
dbbb9144b0
Expose more options for Cookie authentication
2020-01-11 10:55:02 +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]
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
François Voron
e743e48cc5
Bump version: 0.4.1 → 0.5.0
v0.5.0
2020-01-04 15:58:16 +01:00
François Voron
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
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]
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
dependabot-preview[bot]
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
dependabot-preview[bot]
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
François Voron
935bccf528
Bump version: 0.4.0 → 0.4.1
v0.4.1
2019-12-17 15:50:12 +01:00
François Voron
7817d372c6
Fix #77 : use CharField for PK in Tortoise adapter
2019-12-17 15:49:30 +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]
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
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]
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
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]
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
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
François Voron
edb887f3f1
Bump version: 0.3.2 → 0.4.0
v0.4.0
2019-12-04 13:34:23 +01:00
François Voron
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
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]
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
dependabot-preview[bot]
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
dependabot-preview[bot]
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
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]
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