Files
fastapi-users/fastapi_users
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
..
2022-05-05 14:51:19 +02:00
2022-10-18 08:02:01 +02:00
2022-08-11 13:23:49 +02:00
2022-10-18 08:02:01 +02:00
2022-05-05 14:51:19 +02:00
2021-12-30 15:22:07 +01:00
2021-03-04 17:37:28 +01:00
2022-05-06 14:56:49 +02:00