Skip to content

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.

1 participant