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

logout URLs are not working, getting Not Allowed: /oidc/logout/ #8

Open
sanshah1211 opened this issue May 20, 2024 · 1 comment
Open

Comments

@sanshah1211
Copy link

Environment Details - My bumblebee setup is behind reverse proxy.

When I am trying to logout from the bumblebee application, it is redirecting me to the blank page and when I checked the bumblebee container logs I can see below errors.
bumblebee-1 | Method Not Allowed: /oidc/logout/
bumblebee-1 | [2024-05-20 20:29:37,078] [WARNING] Method Not Allowed: /oidc/logout/
bumblebee-1 | [20/May/2024 20:29:37] "GET /oidc/logout/ HTTP/1.1" 405 0
bumblebee-1 | Not Found: /favicon.ico
bumblebee-1 | [2024-05-20 20:29:37,111] [WARNING] Not Found: /favicon.ico
bumblebee-1 | [20/May/2024 20:29:37] "GET /favicon.ico HTTP/1.1" 404 6187

@sanshah1211
Copy link
Author

sanshah1211 commented May 22, 2024

Found the issue, logout is not happening properly because of this block from the HTML code

<form class="form-inline my-2 my-lg-0" action="{% url 'logout' %}" method="post">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-link dropdown-item">Log out</button>
 </form>
 

after changing it from "{% url 'logout' %}" to "{% url ''oidc_logout' %}" it's working properly.

I can see now redirection is happening properly to logout page.

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

1 participant