Skip to content
Discussion options

You must be logged in to vote

(UPDATED in Apr 21, 2025)

There are two ways to solve this.

  1. After from identity.flask import Auth, you can try subclass Auth and override its def logout(self) method. Add your own clear-session logic there, while still calling the parent method and return its return value.
  2. Since the new Identity 0.10.0, you can now configure the logout to end at your own post-logout page, so, you can not only add your session clear logic there, but also customize the appearance of the logout experience.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rayluo
Comment options

You must be logged in to vote
10 replies
@jhudsy
Comment options

@rayluo
Comment options

@rayluo
Comment options

@jhudsy
Comment options

@rayluo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants