Skip to content

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

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

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

Conversation

@rayluo

@rayluo rayluo commented Mar 31, 2025

Copy link
Copy Markdown
Owner

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
@rayluo rayluo deleted the post-logout branch April 17, 2025 07:05
@rayluo

rayluo commented Apr 21, 2025

Copy link
Copy Markdown
Owner Author

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