Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the logout route hardcoded? #162

Open
oculos opened this issue Oct 28, 2023 · 3 comments
Open

Is the logout route hardcoded? #162

oculos opened this issue Oct 28, 2023 · 3 comments

Comments

@oculos
Copy link

oculos commented Oct 28, 2023

I am trying to modify the

@app.route('/logout')

function.

However, even if I erase the decoration and the function, I still get a default behavior for the /logout endpoint, which is a redirect to the root url.

Is it so? Is there a way to configure it differently?

@kevlarius
Copy link

I am trying to modify the

@app.route('/logout')

function.

However, even if I erase the decoration and the function, I still get a default behavior for the /logout endpoint, which is a redirect to the root url.

Is it so? Is there a way to configure it differently?

Looks like it uses views.py#logout_view function. I have the same problem.

@wei-jiang-dns53
Copy link

it's better we can set a url_prefix on the auth blueprint

@abompard
Copy link
Collaborator

If you use the more recent flask-oidc fork, you can use init_app() 's prefix argument.

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

No branches or pull requests

4 participants