Commit Graph

625 Commits

Author SHA1 Message Date
François Voron
e25b82c090 Bump version: 10.1.2 → 10.1.3 v10.1.3 2022-07-23 07:56:58 +00:00
allcontributors[bot]
719b9e47a8 docs: add flipee as a contributor for security (#1044)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-07-23 09:55:23 +02:00
François Voron
d7a1e3420c Fix #1043: Add a prefix to the generated key in RedisStrategy 2022-07-23 07:53:57 +00:00
François Voron
184d3ed101 Bump version: 10.1.1 → 10.1.2 v10.1.2 2022-07-22 16:07:46 +02:00
allcontributors[bot]
6279c896af docs: add caniko as a contributor for bug (#1040)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-07-22 15:54:53 +02:00
Can H. Tartanoglu
77d0077503 Cookie transport must return empty json and not null in response.data on login (#1037)
* Fix: LoginResponse is set to application/json, and should return response with status code 204 when body is empty.

The database backend login response is a cookie header with empty body. This causes issues when integrating the openapi schema into openapi-generator. Because the code generator expects the response to be a JSON when the status code isn't 204.

* Fix: Bump fastapi version to appropriate version for status code 204 handling.

* Build a full response for CookieTransport login_response

Co-authored-by: Can H. Tartanoglu <2947298-caniko@users.noreply.gitlab.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2022-07-22 15:53:56 +02:00
François Voron
580dfced4c Fix md-buttons URL 2022-07-18 18:00:51 +02:00
allcontributors[bot]
53a9f69b98 docs: add aryadovoy as a contributor for doc (#1036)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-07-18 15:44:18 +02:00
Andrey
4ab3bef0a6 docs: added example of db_urls (#1033) 2022-07-18 15:43:54 +02:00
François Voron
02ca70ac75 Update README.md 2022-07-18 11:12:58 +02:00
François Voron
6e479fae4d Update README.md 2022-07-18 11:04:56 +02:00
François Voron
dbc231aca3 Update FUNDING.yml 2022-07-18 10:59:50 +02:00
allcontributors[bot]
152621c679 docs: add vittoriozamboni as a contributor for code (#1025)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-06-27 12:02:32 +02:00
François Voron
f38a35ec56 Bump version: 10.1.0 → 10.1.1 v10.1.1 2022-06-21 10:01:35 +02:00
François Voron
6f5b2b1503 Fix get_oauth_associate_router import to make it optional 2022-06-21 09:58:33 +02:00
François Voron
f5f4ea482e Bump version: 10.0.7 → 10.1.0 v10.1.0 2022-06-21 08:04:17 +02:00
François Voron
b999ec9967 Add docs for OAuth association router 2022-06-20 17:19:19 +02:00
François Voron
f4338ca3df Handle UserAlreadyExists error in oauth callback route 2022-06-20 16:55:58 +02:00
François Voron
ce15284fe9 Implement a router to associate an OAuth account with an authenticated user 2022-06-20 14:44:25 +02:00
François Voron
64d3996415 Add flag to enable/disable email association with OAuth 2022-06-20 13:46:47 +02:00
allcontributors[bot]
7862830c0f docs: add schwannden as a contributor for code (#1020)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-06-20 13:26:45 +02:00
schwannden
3bb3728261 add on delete hook (#1014)
Co-authored-by: Schwannden Kuo <schwannden@mobagel.com>
2022-06-20 13:26:02 +02:00
allcontributors[bot]
0efbab42cd docs: add carloe as a contributor for security (#1019)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-06-20 13:24:39 +02:00
Carlo Eugster
6d324f3cc0 Bump httpx-oauth version (#1013)
Resolve CVE-2021-41945 in httpx dependency
2022-06-20 13:24:08 +02:00
François Voron
2a6128c9fc Bump version: 10.0.6 → 10.0.7 v10.0.7 2022-06-07 08:49:15 +02:00
François Voron
c5ac2b0e6e Use newer version of Redis dependency incorporating async support 2022-06-07 08:43:41 +02:00
allcontributors[bot]
22aebfe648 docs: add austinorr as a contributor for maintenance (#1011)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-06-06 10:25:43 +02:00
Austin Orr
f42ec866d1 uncap fastapi dependency (#1009)
`fastapi` is a project with a very frequent release cadence, and there's little risk of their upstream improvements breaking things for this project. Users of this excellent tool should be able to update their `fastapi` install without having to also update this library, especially when there are significant breaking changes like the recent 9x-10x improvements.
2022-06-06 10:24:30 +02:00
François Voron
d7e5329e31 Update CodeQL analysis workflow 2022-05-27 09:57:34 +02:00
François Voron
00753a367a Add Security CodeQL analysis workflow 2022-05-27 09:54:36 +02:00
allcontributors[bot]
aeccd07735 docs: add JimScope as a contributor for security (#1007)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-05-27 09:52:45 +02:00
François Voron
b59fc794f3 Bump version: 10.0.5 → 10.0.6 v10.0.6 2022-05-27 09:49:39 +02:00
Jimmy Angel Pérez Díaz
98e6e63a0e Update pyjwt dependency (#1005)
See https://github.com/fastapi-users/fastapi-users/issues/1004#issue-1249761672
2022-05-27 09:49:07 +02:00
allcontributors[bot]
9e497c4275 docs: add schwannden as a contributor for maintenance (#1003)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-05-25 16:21:02 +02:00
François Voron
8121ad0b8c Bump version: 10.0.4 → 10.0.5 v10.0.5 2022-05-25 08:50:21 +02:00
François Voron
1b6b58c0e0 Manually cast user to User schema in routes to avoid issue #1000 2022-05-25 08:27:46 +02:00
François Voron
e8635d9132 Bump version: 10.0.3 → 10.0.4 v10.0.4 2022-05-19 14:45:22 +02:00
François Voron
577e4fdd41 Bump fastapi dependency 2022-05-19 14:41:22 +02:00
François Voron
2477fdffc1 Bump version: 10.0.2 → 10.0.3 v10.0.3 2022-05-10 08:42:09 +02:00
François Voron
ed277b8e6c Bump dependencies 2022-05-10 08:38:18 +02:00
allcontributors[bot]
1bc063a4b9 docs: add killswitch-GUI as a contributor for doc (#988)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-05-09 15:29:21 +02:00
⭕Alexander Rymdeko-Harvey
924d163792 Update Documentation installation and fix new beanie install method (#982)
* Update installation types and fix beanie install

* Move install instructions to redis authentication

* Add Redis install instructions
2022-05-09 15:28:56 +02:00
allcontributors[bot]
7d6cd29a7a docs: add Qwizi as a contributor for bug, bug (#985)
* docs: update README.md [skip ci]

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

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-05-09 09:33:55 +02:00
François Voron
d0d1a0dea1 Bump version: 10.0.1 → 10.0.2 v10.0.2 2022-05-06 15:04:15 +02:00
François Voron
c1ce87b4fe Set orm_mode on BaseUser schema 2022-05-06 14:56:49 +02:00
François Voron
15ce3eaab6 Bump version: 10.0.0 → 10.0.1 v10.0.1 2022-05-06 13:20:33 +02:00
François Voron
78be936297 Put exceptions in a dedicated module to avoid circular imports 2022-05-06 13:17:22 +02:00
François Voron
5f57c75813 Fix AuthenticationBackend typing 2022-05-05 18:16:16 +02:00
François Voron
685984e6e3 Bump version: 9.3.2 → 10.0.0 v10.0.0 2022-05-05 14:58:45 +02:00
François Voron
72aa68c462 Native model and generic ID (#971)
* Use a generic Protocol model for User instead of Pydantic

* Remove UserDB Pydantic schema

* Harmonize schema variable naming to avoid confusions

* Revamp OAuth account model management

* Revamp AccessToken DB strategy to adopt generic model approach

* Make ID a generic instead of forcing UUIDs

* Improve generic typing

* Improve Strategy typing

* Tweak base DB typing

* Don't set Pydantic schemas on FastAPIUsers class: pass it directly on router creation

* Add IntegerIdMixin and export related classes

* Start to revamp doc for V10

* Revamp OAuth documentation

* Fix code highlights

* Write the 9.x.x ➡️ 10.x.x migration doc

* Fix pyproject.toml
2022-05-05 14:51:19 +02:00