Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use sails-auth in sails project? #124

Open
gokul-t opened this issue Feb 4, 2016 · 6 comments
Open

How to use sails-auth in sails project? #124

gokul-t opened this issue Feb 4, 2016 · 6 comments

Comments

@gokul-t
Copy link

gokul-t commented Feb 4, 2016

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..

@nickvoegeli
Copy link

+1

The routes suggested in the readme are returning 404's for me after following the instructions.

@josmardias
Copy link

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...

@nickvoegeli
Copy link

I just did a writeup on installing the sails-permissions package that includes detailed instructions for sails-auth. Here's a link.

@josmardias
Copy link

In my case, the problem was sails version. Seems like it's working only with Sails >= 0.12

@emudojo
Copy link

emudojo commented Feb 18, 2016

Using sails 12 and the latest sails-auth works, without having to do any configuration by hand

@smyth64
Copy link

smyth64 commented Jul 23, 2016

Just use the files from sails-permission code!
I had problems using sails-auth only, but now everything works like charm :)

https://github.com/langateam/sails-permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants