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

#158457035 Implement Jwt on signup #7

Merged
merged 6 commits into from
Jul 10, 2018

Conversation

Hasstrup
Copy link
Contributor

@Hasstrup Hasstrup commented Jul 4, 2018

What does this PR do?

This Pull Request integrates the jwt on signup feature.

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.
[ Extract from PT board]

What are the relevant pivotal tracker stories?

#158457035 Users should receive a JWT on successful signup

How should this be manually tested?

Clone into local system, install dependencies and run npm start.
using postman or any other api interactor,
send a json object containing, email , password, name fields to '/api/auth/signup'.
Test cases also reflect changes in this PR

Any background context you want to add?

I also changed the sign up and log in form actions to integrate fully with the api

Screenshots

None

@Hasstrup Hasstrup changed the title #158457035 Implement Jwt on signup #158457035 Implement Jwt on signup [WIP] Jul 6, 2018
@Hasstrup Hasstrup changed the title #158457035 Implement Jwt on signup [WIP] [WIP] #158457035 Implement Jwt on signup Jul 6, 2018
@Hasstrup Hasstrup force-pushed the ft-jwt-on-signup-158457035 branch 2 times, most recently from 0bc1ff7 to 5c3ea0c Compare July 7, 2018 08:18
- Implements receipt of jwt token on signup
- Implements correct controller on signup/login page
- Implements caching of data in browser

[Finishes #158457035]
@Hasstrup Hasstrup force-pushed the ft-jwt-on-signup-158457035 branch from 5c3ea0c to bc9f620 Compare July 7, 2018 09:20
@Hasstrup Hasstrup changed the title [WIP] #158457035 Implement Jwt on signup #158457035 Implement Jwt on signup Jul 7, 2018
Hasstrup and others added 2 commits July 9, 2018 11:45
- Implements receipt of jwt token on signup
- Implements correct controller on signup/login page
- Implements caching of data in browser

[Finishes #158457035]
@coveralls
Copy link

coveralls commented Jul 9, 2018

Pull Request Test Coverage Report for Build 132

  • 28 of 41 (68.29%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-4.7%) to 62.5%

Changes Missing Coverage Covered Lines Changed/Added Lines %
backend-test/integration/auth.test.js 9 10 90.0%
config/routes.js 1 3 33.33%
app/controllers/users.js 13 23 56.52%
Totals Coverage Status
Change from base Build 118: -4.7%
Covered Lines: 656
Relevant Lines: 922

💛 - Coveralls

@Hasstrup Hasstrup force-pushed the ft-jwt-on-signup-158457035 branch from b85d082 to cfa166e Compare July 9, 2018 11:14
@Hasstrup Hasstrup force-pushed the ft-jwt-on-signup-158457035 branch from cfa166e to 6e09097 Compare July 9, 2018 11:20
Oreofeoluwapo Ralph Olutola added 2 commits July 10, 2018 07:11
karma.conf.js Outdated

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['ChromeHeadless'],
browsers: ['Chrome'],

Choose a reason for hiding this comment

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

Remove unused and commented out code

karma.conf.js Outdated
@@ -40,20 +43,24 @@ module.exports = (config) => {
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// // enable / disable watching file and executing tests whenever any file changes

Choose a reason for hiding this comment

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

Remove the extra comment slashed

@@ -1 +1 @@
$('.dropdown-trigger').dropdown();
// $('.dropdown-trigger').dropdown();

Choose a reason for hiding this comment

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

Remove unused code

@adetola-ralph adetola-ralph merged commit ccb3a52 into develop Jul 10, 2018
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

4 participants