balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.82k stars 1.95k forks source link

Asking for CAS integration suggestion #1950

Closed meepeek closed 10 years ago

meepeek commented 10 years ago

I would like to use CAS server for SSO app with SailsJS. I have successfully run RubyCAS server but I don't know how to integrate SailsJS as a CAS client. Do you have any suggestion ?

meepeek commented 10 years ago

Anyone ?

simoami commented 10 years ago

That's one project you're asking about :)

Well, I might be doing a similar thing. What I want to do is provide support for direct authentication in local environments since SSO is generally reserved for production environments. Enable SSO for prod environments.

  1. First you want to add support for passport.js. See this http://jethrokuan.github.io/2013/12/19/Using-Passport-With-Sails-JS.html
  2. then use one of the available 3rd party strategies to enable SSO as authentication strategy. e.g. OpenID, OAuth or OpenAm.
meepeek commented 10 years ago

Thanks for the reply. Follow your suggestion, I have found this project https://github.com/thomseddon/node-oauth2-server which could solve a lot of problems. I am testing on it. May be I should go for Oauth instead of CAS.