Satellizer with Sails-open source projects sahat/satellizer
I would like to implement local authentication and authentication via social networks in a Sails app which is developed as an API server.
I tried passportjs and sails-auth-generator but I think they are more meant towards sails apps which render server side views and requires extra logic if implemented in a restful app.
With that I found the Satellizer auth module and would really like to use it over the passportjs mess.
It also has very clean examples for authentication with different networks: Auth Examples for Expressjs.
Also, It has client side angularjs directives for plug-n-play use.
But, I am unable to figure out how should I port the whole ExpressJs example to sailsjs terminology of services, policies etc since this is new for me. Please assist with the same.
Thanks!