jakemanger
9eb49482c7
Users now become unverified when email is changed ( #783 )
...
* Users now become unverified when email is changed
Occurs when updating user.email to a new value
* changed wording
2021-11-07 10:04:06 +01:00
PovilasK
1e40104ed5
Remove duplicate ( #777 )
...
Remove duplicate `user_db_model`
2021-11-02 08:13:24 +01:00
Brandon H. Goding
0c45cbc179
Add a name on every route #762 ( #774 )
...
* Names for urls added
* Tests for Login/Logout Names
* Register Name Test
* tests/test_router_reset.py
* Tests to verify url names in users router
* Test Verify Router Names
* oauth routes updated with prefix
* Test for authorize. Didn't right test for callback as covered under other tests
2021-11-02 08:12:43 +01:00
Yasser Tahiri
872b85de03
Code Expression ( #1 ) ( #767 )
...
* Replace unused `for` index with underscore
* Use `items()` to directly unpack dictionary values
* Merge duplicate blocks in conditional
* Use `any()` instead of for loop
* Format __init__.py
2021-10-16 09:29:34 +02:00
François Voron
057cf48fe1
Bump version: 8.1.0 → 8.1.1
2021-10-11 08:16:48 +02:00
maximka1221
b33371542f
Fixed bug with custom reset token audience.
...
When adding a custom reset token audience, we still use the default one in the creation of the JWT token instead of the custom one.
2021-09-23 12:54:13 +03:00
François Voron
0826ec5299
Bump version: 8.0.0 → 8.1.0
2021-09-21 08:35:06 +02:00
François Voron
eb47dc8e75
Pass user_manager instance in get_login_response/get_logout_response
2021-09-21 08:28:25 +02:00
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