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 it possible to logout from cas in backend code using gem? #88

Open
AwesomeAwesomeBest opened this issue Nov 11, 2020 · 0 comments
Open

Comments

@AwesomeAwesomeBest
Copy link

AwesomeAwesomeBest commented Nov 11, 2020

I am using rails 5.1.5 in my service. I would like to log out a user from a controller method after some user action in the service. It shouldn't be a action on view like a redirect to a logout page. I tried to insert a separate line into the controller,
request.session.send (request.session.respond_to?(:destroy) ? :destroy : :clear)
and request.session[:cas ] was destroyed, but after, as I understood, there was a call to the CAS, and a new request.session[:cas ] one returned to the service with a new service ticket. Is it possible to refer to the gem to completely interrupt the user's session.Thanks in advance

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