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

Documentation would be greatly appreciated #4

Closed
vmaatta opened this issue Dec 2, 2014 · 5 comments
Closed

Documentation would be greatly appreciated #4

vmaatta opened this issue Dec 2, 2014 · 5 comments

Comments

@vmaatta
Copy link

vmaatta commented Dec 2, 2014

I've been trying to bring sails-auth into an existing project and I have to say this is more painful due to the lack of documentation. There's good promise in sails-auth but can the project in its current state to really be used? If so, what exact steps does one need to do, what exactly needs to be implemented by hand and what does sails-auth implement.

  1. How to get registration and login working with simple local auth. I'm basically just hitting 404s and from /auth/local/register for example. Yeah, clearly templates are not provided but the feeling I have right now is: "is anything else either"?
  2. How to implement simple bearer authentication. Whether with oauth2 or just raw passport-http-bearer, what needs to be implemented to just authenticate the user.

I'm fine with manually adding tokens to users. All I want is to validate that this thing is going to work and to do that I need to know what templates / callbacks etc. need to be implemented and where.

PS. A note about the need to add "auth-api": "sails-auth" to .sailsrc would be good.

@tjwebb
Copy link
Member

tjwebb commented Dec 2, 2014

I apologize; I've been using this for my personal projects, and have been lagging on writing comprehensive docs. I will finish the documentation this evening.

@vmaatta
Copy link
Author

vmaatta commented Dec 2, 2014

Sounds great. I can also note that I made some surprising headway when I just copy pasted the routes from node_modules/sails-auth/config/routes.js to the project's own routes instead of just the _.defaults call. Some weird goings on and trial and error but I then managed to get local and google, both registration and login working.

@tjwebb
Copy link
Member

tjwebb commented Dec 5, 2014

I lied 3 days ago when I said I'd finish the docs the next day. I will still try to do this as soon as possible

@tjwebb
Copy link
Member

tjwebb commented Feb 25, 2015

I've recently published a lot of new documentation for sails-auth and sails-permissions. I hope you find it useful.

@tjwebb tjwebb closed this as completed Feb 25, 2015
@cyrilchapon
Copy link

How to get registration and login working with simple local auth. I'm basically just hitting 404s and from /auth/local/register for example. Yeah, clearly templates are not provided but the feeling I have right now is: "is anything else either"?

This is not aswered by any documentation in here, is it ?

itsheng pushed a commit to itsheng/sails-auth that referenced this issue Aug 4, 2018
Corrected npmjs.org link & removed incorrect travis-link
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

3 participants