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

Token generated using JWT for authentication. Passport authentication using local strategy #37

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pupudu
Copy link

@pupudu pupudu commented Mar 23, 2016

This is regarding issue #2
@agentmilindu
@rhperera

To test the JWT token generation route, please send a POST request to /authenticate with the following body.

{
   username: "dodan",
   password: 1
}

To test the passport authentication, send a request POST /login with a payload in following pattern

{
   username: "dodan",
   password: 1
}

To test the create user route, send a request, POST /signup with a payload in following pattern

{
   name: "Pubudu",
   username: "dodan",
   password: 1
}

@pupudu
Copy link
Author

pupudu commented Mar 23, 2016

Note - Password hashing is done using bcrypt-nodejs module

@pupudu pupudu changed the title Token generated using JWT for authentication. Please review and merge Token generated using JWT for authentication. Passport authentication using local strategy Mar 24, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant