Devise Gem and Single Sign On

  • 9 July 2012
  • 3 replies

I've read

We want to do single sign in using the Devise Ruby gem in Rails.  The routes are:

sign in:
HTTP GET to /users/sign_in

sign out:
HTTP DELETE to /users/sign_out

When configuring single sign in on your FreshDesk Admin => Security tab, I don't see how to specify the HTTP verb.  I need it to be an HTTP DELETE for sign out.  How do I configure this?



This topic has been closed for comments

3 replies

You can change the default HTTP method DELETE devise uses in config/initializers/devise.rb

config.sign_out_via = :delete

I know this is a fairly old ticket, but I am trying to achieve the exact same thins, is there any chance you could outline the code changes on the device side, and the configuration in Freshdesk to get this working?

Userlevel 4
Badge +12


Though the post was created long back, we're sorry to respond to the thread only now. You can find a sample repo here :

Shoot us questions if you need any assistance with the setup.