{"id":7515,"date":"2015-07-18T03:25:16","date_gmt":"2015-07-18T03:25:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/satellizer-with-sails-open-source-projects-sahat-satellizer\/"},"modified":"2015-07-18T03:25:16","modified_gmt":"2015-07-18T03:25:16","slug":"satellizer-with-sails-open-source-projects-sahat-satellizer","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/satellizer-with-sails-open-source-projects-sahat-satellizer\/","title":{"rendered":"Satellizer with Sails-open source projects sahat\/satellizer"},"content":{"rendered":"<p>I would like to implement local authentication and authentication via social networks in a Sails app which is developed as an API server.<\/p>\n<p>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.<\/p>\n<p>With that I found the Satellizer auth module and would really like to use it over the passportjs mess.<\/p>\n<p>It also has very clean examples for authentication with different networks: Auth Examples for Expressjs.<\/p>\n<p>Also, It has client side angularjs directives for plug-n-play use.<\/p>\n<p>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.<\/p>\n<p>Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7515","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7515"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7515\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}