Skip to content

Is it possible to logout from cas in backend code using gem?  #88

@AwesomeAwesomeBest

Description

@AwesomeAwesomeBest

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions