-
Notifications
You must be signed in to change notification settings - Fork 156
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
Can't logout from IdP #163
Comments
Can you share your routes file? At least, the parts with |
@adamstegman yes, of course.
...
devise_for :users, controllers: { omniauth_callbacks: "users/omniauth_callbacks", sessions: 'users/sessions' }
... and the relevant part of
By the way, I'm using version 1.5.0 of the gem and using Hope it helps! |
I notice that It would probably be good to have that routes as |
I noticed the default route for |
I think they should be separate, but that ship has already sailed on v1 of this gem. |
Hi guys, sorry for the delay, I just couldn't check this out before. Just for the record, what I ended up doing was adding: get 'users/saml/sign_out', to: 'devise/saml_sessions#destroy', as: "destroy_saml_session" to my Maybe there is a way to add |
We had a bunch of IDP logout issues because of the session_index. You can see what we did on this ticket. I have been meaning to create a PR for it, but haven't had a chance. |
I was about to create a PR to change the bug in the gem routes (I believe it is a bug because all routes use the prefix but the sign out does not). |
We could do that; it shouldn't be too hard to maintain 1.x and 2.x branches. I think I was hoping to think of more breaking changes that would be helpful for a V2, but I just don't have the time. |
We also got issues (and real confusion ;-)) with the duplicated sign_out route target. A fix with a " saml_" prefixed route would be great, bumping to v2 wouldn't matter that much imho. I do understand the feelings regarding it but at the end of the day those are only numbers and SemVer is made exactly for this situations to help us devs to get aware of breaking changes. |
Hi guys!
I've been working with this gem and the login part is working just fine, but I can't make the logout on IdP to work.
Currently I followed the instructions on the wiki about multiple authentication strategies, but I'm logging out the user using the
#destroy
method of my customSessionsController
:Unfortunately when I do
return redirect_to destroy_saml_user_session_path
I get a 404 Not found on/users/sign_out
Am I missing something or doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: