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

Cannot configure logout path #31

Closed
rafal-brize opened this issue Mar 12, 2015 · 1 comment
Closed

Cannot configure logout path #31

rafal-brize opened this issue Mar 12, 2015 · 1 comment

Comments

@rafal-brize
Copy link

If I understand correctly this code below means, that rack cas will intercept logout action only on a fixed route. What if I do not want Rack-cas to handle logout, or to handle using another path?

class CASRequest
...
def logout?
    @request.path_info == '/logout'
end
class Rack::CAS
...
if cas_request.logout?
      log env, 'rack-cas: Intercepting logout request.'

      request.session.clear
      return redirect_to server.logout_url(request.params).to_s
end
@adamcrown
Copy link
Collaborator

Well you can always create your own path such as /signout or /log-out and just ignore the one that rack-cas provides.

If you really want to use /logout but have it do something else, then I'd accept a pull request to have an option to change or turn off the logout path.

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

2 participants