Skip to content

Flask, Quart and Django's Auth(..., post_logout_view=...)#50

Merged
rayluo merged 1 commit intodevfrom
post-logout
Apr 17, 2025
Merged

Flask, Quart and Django's Auth(..., post_logout_view=...)#50
rayluo merged 1 commit intodevfrom
post-logout

Conversation

@rayluo
Copy link
Copy Markdown
Owner

@rayluo rayluo commented Mar 31, 2025

Experimental Auth(..., post_logout_view=...) for caller to customize which view to redirect to after logging out.

For example, in Flask, you can do this:

@app.route("/my_post_logout_page")
def my_logout_view():
    return "You have logged out"

auth = build_auth(
    app,
    ...,
    post_logout_view=my_logout_view,  # Optional
    )

You may test this feature by installing the feature branch:

pip install https://github.com/rayluo/identity/archive/post-logout.zip

@rayluo rayluo merged commit 55f10aa into dev Apr 17, 2025
6 checks passed
@rayluo rayluo deleted the post-logout branch April 17, 2025 07:05
@rayluo
Copy link
Copy Markdown
Owner Author

rayluo commented Apr 21, 2025

Shipped in Identity 0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant