513 Commits

Author SHA1 Message Date
1df6e7d162 Fix get_verify_router docstring 2021-01-12 11:21:23 +01:00
d4227ae20f Fix #335: implement after_reset_password handler 2021-01-12 11:18:34 +01:00
2829824a95 Fix #438: issue while retrieving OAuth accounts with PSQL 2021-01-12 10:53:40 +01:00
373157c284 Finalize user activation feature (#439)
* Add routes for user activation (#403)

* Add routes for user activation

Generate a token after creating the user in register route, passing to `activation_callback`, if `activation_callback` supplied
Create new `/activate` route that will verify the token and activate the user
Add new error codes to `fastapi_users/router/common.py`
Update documentation
Add tests

Co-authored-by: Mark Todd <markpeter.todd@hotmail.co.uk>

* Rework routes for user activation

* Separate verification logic and token generation into `/fastapi_users/router/verify.py`, with per-route callbacks for custom behaviour

* Return register router to original state

* Added `is_verified` property to user models

* Added `requires_verification` argument to `get_users_router`and `get_auth_router`

* Additional dependencies added for verification in `fastapi_users/authentication/__init__.py`

* Update tests for new behaviour

* Update `README.md` to describe a workaround for possible problems during testing, by exceeding ulimit file descriptor limit

Co-authored-by: Mark Todd <markpeter.todd@hotmail.co.uk>

* Restored docs to original state.

* All other modifications reqested added

Kebab-case on request-verify-token
SECRET now used as test string
Other minor changes

Co-authored-by: Mark Todd <markpeter.todd@hotmail.co.uk>

* Embed token in body in verify route

* Reorganize checks in verify route and add unit test

* Ignore coverage on Protocol classes

* Tweak verify_user function to take full user in parameter

* Improve unit tests structure regarding parametrized test client

* Make after_verification_request optional to be more consistent with other routers

* Tweak status codes on verify routes

* Write documentation for verification feature

* Add not released warning on verify docs

Co-authored-by: Edd Salkield <edd@salkield.uk>
Co-authored-by: Mark Todd <markpeter.todd@hotmail.co.uk>
2021-01-12 10:44:42 +01:00
7f6e3c9253 Bump version: 3.1.2 → 4.0.0 v4.0.0 2020-12-28 09:12:47 +01:00
338750f211 Bump dependencies 2020-12-28 09:08:16 +01:00
966b1bd4c4 Add 4.x.x migration doc 2020-12-28 08:59:33 +01:00
7cf7154e27 Fix #431: make OAuth expires_at optional in model and DB schemas 2020-12-28 08:59:27 +01:00
8940f6b9f8 Add Buy me a coffee badge 2020-12-24 12:04:34 +01:00
81db8f95e7 Create FUNDING.yml 2020-12-24 10:48:12 +01:00
61bdab0fb4 Revert ko-fi 2020-12-24 10:43:54 +01:00
b3889db259 Add ko-fi link in README 2020-12-24 10:21:01 +01:00
2d2580b589 Create FUNDING.yml 2020-12-24 10:12:27 +01:00
9a0aee6203 Fix pyjwt version on pyproject.toml 2020-12-24 09:51:46 +01:00
92c523c379 Upgrade to pyjwt==2.0.0 2020-12-24 09:47:34 +01:00
7e2ca9551e Bump version: 3.1.1 → 3.1.2 v3.1.2 2020-12-23 17:35:30 +01:00
8d008fc6a6 Bump dependencies 2020-12-23 17:31:41 +01:00
cdb1409b7f Tweak issues templates 2020-12-23 17:24:09 +01:00
69a1ca19f7 Update issue templates 2020-12-23 17:22:34 +01:00
0ae0a8e279 Create config.yml 2020-12-23 17:19:06 +01:00
47f2991ee8 Fix #399: fix logout example in doc 2020-12-07 08:00:25 +01:00
42340d992b Fix #396: add password validation example 2020-12-07 07:57:22 +01:00
475c66801c Tweak stale parameters 2020-12-07 07:51:05 +01:00
7186554e30 Bump version: 3.1.0 → 3.1.1 v3.1.1 2020-11-30 14:12:00 +01:00
d5ae105d08 Bump dependencies 2020-11-30 14:08:16 +01:00
512c5c0d35 Add a test_build phase to ensure produced output is working 2020-11-30 14:04:42 +01:00
31168ce9d3 Fix #401: missing typing-extensions dependency 2020-11-30 13:44:19 +01:00
8e82b1e172 Use Protocol from typing if available (#402)
Some of the 'experimental' definitions in typing_extensions are added to the typing module in time.

This PR prefers the stdlib imports when available, falling back to typing_extensions as necessary
2020-11-30 13:09:35 +01:00
253e7e0e80 Bump version: 3.0.7 → 3.1.0 v3.1.0 2020-11-22 10:11:09 +01:00
50f687a4fc Bump dependencies 2020-11-22 10:07:22 +01:00
435f29331a Fix #391: put user creation logic in a importable function 2020-11-22 09:57:03 +01:00
e69a124084 Update Tortoise docs and examples 2020-11-21 17:20:51 +01:00
60c618a8a3 Bump version: 3.0.6 → 3.0.7 v3.0.7 2020-11-17 08:38:34 +01:00
2026fb6fff Bump packages 2020-11-17 08:15:56 +01:00
7d5e6faffb Bump version: 3.0.5 → 3.0.6 v3.0.6 2020-10-14 14:16:36 +02:00
3653be9926 Merge branch 'master' of github.com:frankie567/fastapi-users into master 2020-10-14 14:13:10 +02:00
b6d9230f03 Add 3.9 to test matrix 2020-10-14 14:12:52 +02:00
46b9d90ec4 Apply isort to test files 2020-10-14 14:12:04 +02:00
ad56933836 Bump dependencies 2020-10-14 14:11:51 +02:00
97cc799737 Add SQL String length in SQLAlchemy for MySQL compatibility 2020-09-30 14:48:51 +02:00
e18be91f06 Update PyPi classifiers 2020-09-30 08:20:28 +02:00
f3298f3c11 Bump dependencies 2020-09-30 08:17:02 +02:00
8adce74cd9 added samesite option for cookie authentication (#337)
* added samesite option for cookie authentication

* formatted with black and added documentation (grabbed from starlette.io documentation)
2020-09-30 07:27:25 +02:00
c5f53b73d1 Bump dependencies 2020-09-08 17:01:27 +02:00
531fdeed2d Bump version: 3.0.4 → 3.0.5 v3.0.5 2020-08-26 15:51:42 +02:00
8f07b58016 Bump dependencies 2020-08-26 15:47:56 +02:00
5bcbc3048c Remove old Dependabot badge 2020-08-15 16:14:35 +02:00
9e499791de Bump version: 3.0.3 → 3.0.4 v3.0.4 2020-08-13 14:03:40 +02:00
1464273a11 Use standard MongoDB image for unit tests 2020-08-13 14:03:34 +02:00
0d8e0730fc Bump dependencies 2020-08-13 14:03:19 +02:00