Open gokul-t opened 8 years ago
+1
The routes suggested in the readme are returning 404's for me after following the instructions.
After installing this package I was expecting a GET to /auth/facebook on my app to "simply" exist and return a 302 redirect, due to
//https://github.com/tjwebb/sails-auth/blob/master/config/routes.js
'get /auth/:provider': 'AuthController.provider',
But I only get a 404 Not Found...
I'm getting marlinspike/sails-auth debug messages btw:
debug: marlinspike (auth): loading Services from (...)/node_modules/sails-auth/dist/api/services...
debug: marlinspike (auth): loading Models...
debug: marlinspike (auth): loading Controllers...
debug: marlinspike (auth): loading Policies...
I just did a writeup on installing the sails-permissions package that includes detailed instructions for sails-auth. Here's a link.
In my case, the problem was sails version. Seems like it's working only with Sails >= 0.12
Using sails 12 and the latest sails-auth works, without having to do any configuration by hand
Just use the files from sails-permission code! I had problems using sails-auth only, but now everything works like charm :)
how can i use sails-auth hook in my sails project.I installed sails-auth using npm install sails-auth --save.and when running project terminal logs says sails-auth controllers,services,models are loaded using marlinspike. But i don't have any idea about further steps.please help me..