François Voron
33a7bb3fd9
Update SQLAlchemy examples
2023-01-16 11:08:23 +01:00
François Voron
1f64c943a3
Use Ruff linter
2023-01-16 10:27:01 +01:00
François Voron
4daa263326
Fix typing
2023-01-16 10:20:23 +01:00
Börge Kiss
0b50757a9b
Fix typos in configuration/authentication docs ( #1145 )
2023-01-12 14:23:58 +01:00
François Voron
1104460533
Bump version 10.2.0 → 10.2.1
...
Improvements
------------
* Bump `httpx-oauth >=0.4,<0.11`
* With `httpx-oauth >= 0.10`, the OAuth2 client may be not able to return an email address depending on the OAuth Provider. In this case, the error `OAUTH_NOT_AVAILABLE_EMAIL` is raised during `/callback`. [[Documentation](https://fastapi-users.github.io/fastapi-users/10.2/usage/routes/#get-callback )]
* Enable Python 3.11 support in CI
v10.2.1
2022-11-04 09:47:33 +01:00
François Voron
e760a8594a
Enable Python 3.11 in test matrix
2022-11-04 09:42:59 +01:00
François Voron
aa4c5ef672
Add doc about new OAuth callback error
2022-11-04 09:40:21 +01:00
François Voron
c91e7657db
Update for httpx-oauth >= 0.10 where account_email can be None
2022-11-04 09:35:51 +01:00
allcontributors[bot]
08860167d1
docs: add sandalwoodbox as a contributor for doc ( #1120 )
...
* 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-11-04 09:13:50 +01:00
sandalwoodbox
c8ae5c1cc2
Corrected reset password error response docs ( #1116 )
2022-11-04 09:13:39 +01:00
dependabot[bot]
baca17d9e0
Bump pyjwt[crypto] from 2.5.0 to 2.6.0 ( #1105 )
...
Bumps [pyjwt[crypto]](https://github.com/jpadilla/pyjwt ) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases )
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.5.0...2.6.0 )
---
updated-dependencies:
- dependency-name: pyjwt[crypto]
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 08:04:13 +02:00
François Voron
31ea8e4bc2
Bump version 10.1.5 → 10.2.0
...
New features
------------
* Trigger custom logic after user login with `on_after_login`. [[Documentation]()] Thanks @antont 🎉
Improvements
------------
* Bump dependencies:
* `email-validator >=1.1.0,<1.4`
* `pyjwt[crypto] ==2.5.0`
* Use Hatch for environment and package management
v10.2.0
2022-10-18 09:02:47 +02:00
François Voron
a199a6bed4
Add GitHub release step to CI
2022-10-18 08:59:08 +02:00
François Voron
c42e95c24b
Bump dependencies
2022-10-18 08:51:03 +02:00
François Voron
586601d43d
Bump codecov/codecov-action in CI
2022-10-18 08:41:30 +02:00
François Voron
827d7c05e8
Fix docs CI
2022-10-18 08:40:30 +02:00
François Voron
80eb0ab84a
Fix lint-check command
2022-10-18 08:37:35 +02:00
François Voron
c9186b5382
Fix typing of samesite paramater in CookieTransport
2022-10-18 08:36:01 +02:00
François Voron
21f30229dc
Use hatch for package management
2022-10-18 08:32:06 +02:00
allcontributors[bot]
8208307955
docs: add antont as a contributor for code, and doc ( #1098 )
...
* 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-10-18 08:02:54 +02:00
Toni Alatalo
7ad5f8073d
on_after_login hook ( #1092 )
...
* on_after_login minimal impl.
Questions: is the spot logical for after method? Is after the internal login call.
Would before_login be needed? Maybe not, as auth is the way to do pre-login things.
Added fastapi request as a param just in case, as other callbacks had it too.
Docs addition is missing.
* tried to complete the implementation, but the test with user_manager.on_after_login.called fails though
* move on_after_login tests to right place, to TestLogin. These ones pass.
TODO: check TestCallback
* on_after_login tests to TestCallback too, for oauth. Apparently test_redirect_url_router fires the callback too, I guess that's correct, am not using oauth myself.
* fix formatting with make format
* docs for on_after_login
Co-authored-by: Toni Alatalo <toni.alatalo@gmail.com >
2022-10-18 08:02:01 +02:00
allcontributors[bot]
a665cd5ed7
add hgalytoby as a contributor ( #1084 )
...
* update README.md [skip ci]
* update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-09-23 07:59:38 +02:00
François Voron
13fdcccfa2
Fix unit tests for latest FastAPI version
2022-09-08 08:46:27 +02:00
François Voron
564eb642c8
Fix SECRET value in OAuth full examples
2022-09-08 08:31:53 +02:00
François Voron
3e44abdbef
Fix BMAC button
2022-08-11 17:24:01 +02:00
François Voron
c7053e4621
Bump version: 10.1.4 → 10.1.5
v10.1.5
2022-08-11 13:23:49 +02:00
François Voron
c30fed723d
Bump dependencies
2022-08-11 13:21:43 +02:00
François Voron
3e8f48fc00
Bump dependencies
2022-08-11 13:20:51 +02:00
Ethan Smith
d86ff98d47
Bump httpx-oauth upper bound to 0.8.0 ( #1051 )
2022-08-08 08:52:50 +02:00
François Voron
6c03d51a64
Fix Beanie OAuth example
2022-08-08 08:45:17 +02:00
François Voron
6bc29dd23a
Bump version: 10.1.3 → 10.1.4
v10.1.4
2022-07-25 10:26:28 +02:00
François Voron
d661585238
Revert "Cookie transport must return empty json and not null in response.data on login ( #1037 )"
...
This reverts commit 77d0077503 .
2022-07-25 10:23:55 +02:00
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