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

Feature/130341343/signup with jwt #9

Closed
wants to merge 39 commits into from

Conversation

a-okelawal
Copy link
Contributor

What does this PR do?

  • This PR creates an api for signing up that returns a JWT.

Description of Task to be completed?

  • Users once authenticated via the signup api should be returned a JWT to be required on subsequent call to all other endpoints that require authentication.
  • The criteria are:
    • GIVEN user successfully signs up or logs in
    • WHEN user passes appropriate JSON object to the /api/auth/signup endpoint
    • THEN user should receive a JWT as the response

How should this be manually tested?

  • This should be tested using the command mocha test/server/signup-spec.js

What are the relevant pivotal tracker stories?

  • Feature/#130341343

Screenshots (if appropriate)

  • When a user tries to sign up without the complete details
    screenshot 003
  • When a user already exists
    screenshot001
  • Successful sign up.
    screenshot002

Abisoye Oke-lawal added 25 commits September 21, 2016 23:07
Finishes #130341343
-Update code in auth.js, routes.js, all.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in auth.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
…to develop

- Merge changes with local develop.
Finishes #130341343
-Update code in auth.js, routes.js, all.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in auth.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
- Allow signup without the need of a token
Finishes #130341343
- Rebase with develop branch
Finishes #130341343
- Rebase with develop branch
Finishes #130341343
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling abf11c9 on feature/130341343/signup-with-jwt into e8c42bb on develop.

Copy link
Contributor

@ruqoyyasadiq ruqoyyasadiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andela-abisoye I do not see the password hash implementation in the sign up method

Abisoye Oke-lawal added 3 commits October 4, 2016 16:34
Finishes #130341343
-Update code in auth.js, routes.js, all.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in auth.js and signup-spec.js
to meet hound specifications.

Finishes #130341343
Abisoye Oke-lawal added 11 commits October 4, 2016 16:34
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
-Update code in signup-spec.js
to meet hound specifications.

Finishes #130341343
- Allow user signup without token
Finishes #130341343
- Rebase with develop
Finishes #130341343
- Rebase with develop
Finishes #130341343
- Add password hashing function to signup
Finishes #130341343
@a-okelawal a-okelawal closed this Oct 4, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2d30bc4 on feature/130341343/signup-with-jwt into e8c42bb on develop.

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

3 participants