Commit Graph

454 Commits

Author SHA1 Message Date
François Voron
c198da58bc Complete OAuth2 documentation 2021-09-18 10:18:44 +02:00
François Voron
fc59cf11ef Rework the documentation 2021-09-17 15:14:36 +02:00
François Voron
e31a0a99b5 Bump version: 8.0.0b1 → 8.0.0b2 v8.0.0b2 2021-09-17 11:25:35 +02:00
François Voron
69f18cff47 Put user_db_model as attribute of UserManager 2021-09-17 11:24:49 +02:00
François Voron
913cd5cb2a Bump version: 7.0.0 → 8.0.0b1 v8.0.0b1 2021-09-17 10:30:27 +02:00
François Voron
a8638118f6 Export BaseUserManager from main module 2021-09-15 16:13:06 +02:00
François Voron
eda3676fd0 Small tweaks 2021-09-15 16:11:53 +02:00
François Voron
018771cf73 Add manager docstrings 2021-09-15 16:00:58 +02:00
François Voron
de86456af2 Add some manager tests 2021-09-15 15:20:28 +02:00
François Voron
4aac218d8a Add manager pytest marker 2021-09-15 14:49:49 +02:00
François Voron
6fca8d1306 Add a test for JWT helpers 2021-09-15 14:45:28 +02:00
François Voron
79f1d1198a Remove typing-extensions dependency 2021-09-15 14:38:39 +02:00
François Voron
2a50c59926 Remove asynctest dependency 2021-09-15 14:37:37 +02:00
François Voron
5cba969679 Refactor verify logic into manager 2021-09-15 14:36:04 +02:00
François Voron
1aea32ca4a Tweak unit test 2021-09-15 13:35:28 +02:00
François Voron
3bdae94869 Refactor OAuth logic into manager 2021-09-15 11:57:17 +02:00
François Voron
9673e0a5fd Move on_after_update to manager 2021-09-15 09:34:28 +02:00
François Voron
663b7405a7 Move forgot/reset password logic to manager 2021-09-15 09:13:11 +02:00
François Voron
38d4aed817 Move on_after_register to manager 2021-09-14 15:02:17 +02:00
François Voron
8967138375 Inject a user manager dep callable directly to FastAPIUsers 2021-09-14 14:39:59 +02:00
François Voron
480a6bc4df Move validate_password into UserManager 2021-09-14 14:01:57 +02:00
François Voron
fdc8e54253 Improve generic typing 2021-09-14 11:53:43 +02:00
François Voron
90aee2d487 Tweak unit tests 2021-09-14 11:30:41 +02:00
François Voron
bdf1ae5663 Fix test coverage of reset router 2021-09-14 11:27:48 +02:00
François Voron
e2395998e4 Fix unit tests of authentication classes 2021-09-14 11:24:32 +02:00
François Voron
dade8c263d Revamp implementation with a manager layer and db class as dependency callable 2021-09-14 11:12:34 +02:00
allcontributors[bot]
ccbdd09659 docs: add stephane as a contributor for test, bug (#723)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-09-12 12:01:26 +02:00
François Voron
2900bf4df7 Add notice about UserUpdate model when upgrading to v7 2021-09-09 16:11:07 +02:00
François Voron
b7ddf97127 Fix link in documentation 2021-09-09 13:36:52 +02:00
François Voron
79225e6642 Add 6 -> 7 migration doc 2021-09-09 13:28:14 +02:00
François Voron
4efaaaaa61 Bump version: 6.1.3 → 7.0.0 v7.0.0 2021-09-09 13:12:22 +02:00
François Voron
38b72ac197 Improve docs regarding getting current user 2021-09-09 12:15:46 +02:00
François Voron
370194ff6e Remove deprecated dependency callables 2021-09-09 12:15:06 +02:00
François Voron
7ae2042500 Fix #701: factorize JWT handling and support secrets as SecretStr 2021-09-09 11:51:55 +02:00
allcontributors[bot]
c7f1e448a2 docs: add daanbeverdam as a contributor for code (#712)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-09-04 18:14:00 +02:00
François Voron
b8f75d98c0 Fix .all-contributorsrc 2021-09-04 18:13:31 +02:00
Daan Beverdam
e59fb2c9b9 Return 403 instead of 401 when a user is known (#705)
* return 403 instead of 401 if user is known

* return 403 for unverified users

* updated docs
2021-09-04 18:11:48 +02:00
François Voron
7527902e9d Update book link 2021-09-04 18:08:23 +02:00
François Voron
6436e08664 Add book notice on README 2021-09-03 16:57:57 +02:00
François Voron
ce69ea5b8a Apply formatting 2021-08-29 17:00:59 +02:00
François Voron
83873338f3 Refactor models 2021-08-29 17:00:45 +02:00
François Voron
a95b6c45dd Fix mypy configuration 2021-08-29 15:36:04 +02:00
François Voron
45354ee9f0 Use default_factory in model for UUID4 generation 2021-08-29 15:35:56 +02:00
François Voron
848315badc Remove DB dependencies (#704)
* Remove database adapter in favor of external dependencies

* Prevent flit from installing all optional dependencies when testing build

* Remove MongoDB service during CI build
2021-08-27 17:01:50 +02:00
François Voron
3b550adc60 Bump version: 6.1.2 → 6.1.3 v6.1.3 2021-08-27 16:03:07 +02:00
François Voron
37d03ea730 Update repository paths 2021-08-27 16:00:27 +02:00
François Voron
d0501b363e Bump version: 6.1.1 → 6.1.2 v6.1.2 2021-08-13 08:58:28 +02:00
François Voron
3b6d860755 Bump fastapi 2021-08-13 08:55:20 +02:00
David Brochart
d2d25da9d1 Fix OAuth2 documentation (#692) 2021-08-13 08:46:47 +02:00
allcontributors[bot]
0ea3460a49 docs: add davidbrochart as a contributor for doc (#690)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2021-08-12 14:21:31 +02:00