François Voron
e819bb0b65
Add get_enabled_backends advanced feature
2021-09-21 08:20:07 +02:00
François Voron
a82dfc262d
Bump version: 8.0.0b3 → 8.0.0
2021-09-20 08:51:50 +02:00
François Voron
ab06778adf
Fix #733 : don't raise error when updating user with same email
2021-09-20 08:49:19 +02:00
François Voron
5a4e57c206
Bump version: 8.0.0b2 → 8.0.0b3
2021-09-20 07:49:05 +02:00
François Voron
e31a0a99b5
Bump version: 8.0.0b1 → 8.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
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
5cba969679
Refactor verify logic into manager
2021-09-15 14:36:04 +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
dade8c263d
Revamp implementation with a manager layer and db class as dependency callable
2021-09-14 11:12:34 +02:00
François Voron
4efaaaaa61
Bump version: 6.1.3 → 7.0.0
2021-09-09 13:12:22 +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
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
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
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
2021-08-13 08:58:28 +02:00
Ben
bfc2380320
Enable custom JWT token audiences ( #649 )
2021-07-17 10:00:42 +02:00
François Voron
9e35dbf450
Bump version: 6.1.0 → 6.1.1
2021-07-10 11:22:21 +02:00
Joe Nudell
89c87c97f4
return empty response with 204 ( #650 )
2021-07-03 20:19:48 +02:00
mark-todd
728c160b50
Added python_type into GUID ( #648 )
2021-06-25 16:45:31 +02:00
François Voron
c5f0eb2931
Bump version: 6.0.0 → 6.1.0
2021-05-20 08:52:48 +02:00
François Voron
455f695f52
Fix #630 : relative tokenUrl ( #636 )
...
* Fix #630 : use relative tokenUrl as per the official recommendations
* Improve following review comments
* Fix unmatching backtick
* Improve consistency of authentication backend documentation
2021-05-20 08:52:03 +02:00
François Voron
a690e82408
Fix typing errors
2021-05-17 09:00:34 +02:00
François Voron
5267e605f4
Implement password validation mechanism ( #632 )
...
* Implement password validation mechanism
* Add invalid password reason
* Always pass user in password validator
* Add password validation documentation
2021-05-17 08:58:23 +02:00
François Voron
13029cb73d
Bump version: 5.1.4 → 6.0.0
2021-04-20 14:46:54 +02:00
François Voron
3ac67377cb
Fix #600 : revamp Tortoise/Pydantic interaction ( #612 )
2021-04-20 14:46:36 +02:00
François Voron
61a99755e8
Bump version: 5.1.3 → 5.1.4
2021-04-20 14:40:57 +02:00
François Voron
d184d7e90c
Fix #609 : make behavior more consistent on request verify token
...
Now, it always returns 202 even if the user is already verified
2021-04-20 13:54:50 +02:00
François Voron
461e84acae
Fix #561 : Update a user with an email already existing in DB raises an error
2021-04-20 13:49:00 +02:00
François Voron
e885525497
Bump version: 5.1.2 → 5.1.3
2021-03-29 08:08:57 +02:00
François Voron
ef4a54c204
Allow lifetime_seconds to be None to get session cookies
2021-03-19 18:19:58 +01:00
François Voron
e7ceb1569c
Bump version: 5.1.1 → 5.1.2
2021-03-08 17:07:16 +01:00
François Voron
66d7c76a89
Fix BaseUserDB typing by making email, is_active, is_superuser and is_verified non optional
2021-03-08 17:07:07 +01:00
François Voron
addad8aba7
Bump version: 5.1.0 → 5.1.1
2021-03-04 19:01:03 +01:00