fastapi-users icon indicating copy to clipboard operation
fastapi-users copied to clipboard

Add on_after_logout method to user_manager

Open heiskane opened this issue 1 year ago • 6 comments

Allows to perform custom logic (analytic etc.) after logout for the same reasons as in on_after_login.

I am currently using fast-api for serving html content. I know its not the primary use-case for it but its pretty well supported. Because of this login/logout requests come from html forms instead of api calls from javascript so login/logout routes need to handle http redirects. For login requests its easy to handle with the on_after_login method on the user_manager but for logouts there is no such option. Currently to add custom redirects to logout requires manually implementing both login and logout routes so having a on_after_logout method would make things much more convenient.

heiskane avatar Aug 04 '24 08:08 heiskane

Will this RP be merged?

hgalytoby avatar Nov 15 '24 09:11 hgalytoby

@heiskane is it possible to release this please?

integrajerome avatar Dec 19 '24 12:12 integrajerome

@heiskane is it possible to release this please?

Yes its ready to merge.

heiskane avatar Dec 19 '24 14:12 heiskane

Hello. Can you merge and release please @heiskane?

integrajerome avatar May 15 '25 12:05 integrajerome

Hey. To clarify I'm not a maintainer in this repository so i don't have the ability to merge. Not sure if there is anything else needed of me here as there are no conflicts with this branch.

heiskane avatar May 15 '25 16:05 heiskane

@frankie567 could you please let us know the current status of this feature?

meznar12 avatar May 22 '25 12:05 meznar12

Thank you for your interest!

Unfortunately, we're now in maintenance mode, which means we won't add new features and focus only on security and maintenance updates. [Read more]

frankie567 avatar Oct 25 '25 06:10 frankie567