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/153569580/users should be to sign in with google authentication #41

Conversation

benfluleck
Copy link
Owner

Description

  • Implemented google Authentication sign in route. Google Client ID used in web pack for use on the project.
  • First-time users still expected to sign in to the website
  • Implemented change password screen for authenticated users
  • Implemented interface for admin users for user notifications

What does this PR do?

This PR merges the changes to the development branch and also publishing the changes to the web app on heroku

Screenshots (if appropriate):

screen shot 2017-12-17 at 3 09 25 pm

screen shot 2017-12-17 at 3 09 42 pm

screen shot 2017-12-17 at 3 09 50 pm

Any background context you want to provide?

  • google API
  • react-google

What are the relevant pivotal tracker stories?

https://www.pivotaltracker.com/story/show/153569580
https://www.pivotaltracker.com/story/show/153569722
https://www.pivotaltracker.com/story/show/153569550
https://www.pivotaltracker.com/story/show/153569503
https://www.pivotaltracker.com/story/show/153561900

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New chore (expected functionality to be implemented)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Benny Ogidan added 10 commits December 14, 2017 17:04
- Change password form implemented to use old passwords

- Readme refactored and changed

-  Codeclimate yml introduced

- Test refactored to implement current changes with the program
- Read me updated in respect to feedback
- Google authentication installed and working with sign in route
- Google auth removed from sign up from client side
- Read me updated with a link to the Project FAQs
- Notifier reducers implemented
- Implemented spacing between Jsdoc statements
- Implemented reducer for categories to help refactor the bookReducer
- Fix for loading of userList on heroku
- Shortened Google Auth for usernames
- Removed old files inappropriately named
} else {
Materialize.toast('Please sign in again', 3000)
Materialize.toast('Please sign in again', 3000);

Choose a reason for hiding this comment

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

'Materialize' is not defined no-undef

this
.props
.history
.push('/login')
.push('/login');

Choose a reason for hiding this comment

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

'history.push' is missing in props validation react/prop-types

import { connect } from 'react-redux';
import { signup } from '../../../actions/authenticate';

Choose a reason for hiding this comment

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

Missing file extension for "../../../actions/authenticate" import/extensions

import { LOAN_HISTORY_FAILURE, LOAN_HISTORY_SUCCESS } from './actiontype';
import {
LOAN_HISTORY_FAILURE,
LOAN_HISTORY_SUCCESS } from './actionType';

Choose a reason for hiding this comment

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

Missing file extension for "./actionType" import/extensions

@@ -5,23 +5,38 @@ import { showErrorNotification } from './notifications';
import { UPLOAD_TO_CLOUD_IMAGE_SUCCESS,
UPLOAD_TO_CLOUD_IMAGE_FAILURE,
CLOUDINARY_UPLOAD_PRESET,
CLOUDINARY_UPLOAD_URL } from './actiontype';
CLOUDINARY_UPLOAD_URL } from './actionType';

Choose a reason for hiding this comment

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

Missing file extension for "./actionType" import/extensions

import nullvalidationMiddleware from '../controllers/middleware/nullValidation';
import decodeToken from '../controllers/middleware/authenticate';
import checkAdmin from '../controllers/middleware/checkAdmin';
import checkGoogleAuth from '../controllers/middleware/checkGoogleAuth';

Choose a reason for hiding this comment

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

Missing file extension for "../controllers/middleware/checkGoogleAuth" import/extensions

@@ -1,9 +1,11 @@
import express from 'express';
import controller from '../controllers';
import fieldValidationMiddleware from '../controllers/middleware/fieldValidations';
import fieldValidationMiddleware from
'../controllers/middleware/fieldValidations';

Choose a reason for hiding this comment

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

Missing file extension for "../controllers/middleware/fieldValidations" import/extensions

isAdmin: req.body.isAdmin
}).then((user) => {
if (user) {
res.status(201).send({
message: `${user.username} has been added, Please Login`
message: `${user.username} has been added to the library,` +

Choose a reason for hiding this comment

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

Line 51 exceeds the maximum line length of 80 max-len

@@ -1,17 +1,23 @@
import models from '../models';
import paginationFunc from '../controllers/middleware/pagination';

Choose a reason for hiding this comment

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

Missing file extension for "../controllers/middleware/pagination" import/extensions

@@ -1,8 +1,8 @@
import { isLength, isAlpha, isNumeric, isEmpty, isAlphanumeric } from 'validator';
import { isLength, isAlpha, isNumeric, isAlphanumeric } from 'validator';

Choose a reason for hiding this comment

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

Missing file extension for "validator" import/extensions

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 90.444% when pulling d955543 on feature/153569580/users-should-be-to-sign-in-with-google-authentication into 863b522 on development.

@benfluleck benfluleck merged commit 93642cd into development Dec 17, 2017
@benfluleck benfluleck deleted the feature/153569580/users-should-be-to-sign-in-with-google-authentication branch January 6, 2018 12:06
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.

3 participants