5

I realized from a previous question that I had been asking the wrong question...I would like to turn my application into a CAS server so that admins of the application may use this same authentication mechanism to log into other applications that we develop for the organization.

Have you done this before? Is there a plugin which adds the ability to Devise to be able to act as a CAS server? What do I need to change/add in order to turn the app into a CAS server?

Community
  • 1
  • 1
Andrew
  • 227,796
  • 193
  • 515
  • 708

1 Answers1

4

Check this similar question, that explains rails 4 issues with devise_cas_authenticatable gem.

For the Server, you may use CASino for the server, it looks very clean. Check its installation guide.

OR

An Alternative solution, if both apps are on the same domain and they share the same database, you can simply modify the session cookie to be universal for all subdomains on your specified domain.

Community
  • 1
  • 1
mohameddiaa27
  • 3,587
  • 1
  • 16
  • 23
  • `devise_cas_authenticatable` is used for creating a client, not a server. So it requires that you already have a CAS server running somewhere else. – Andrew Sep 16 '14 at 23:52
  • 1
    @Andrew I've updated my answer, if that is what you needed, you may find this [article](http://bentoncreation.com/post/74392403766/devise-cas-using-devise-cas-authenticatable-and) helpful. – mohameddiaa27 Sep 17 '14 at 08:39
  • This is the correct link [article](https://jeremysmith.co/posts/2014-01-24-devise-cas-using-devisecasauthenticatable-and-casino/) – Kingdon Aug 19 '18 at 02:35