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

#164489784 Integrate login with Twitter and GitHub #20

Merged
merged 11 commits into from
Apr 16, 2019

Conversation

jnkindi
Copy link
Contributor

@jnkindi jnkindi commented Apr 9, 2019

What does this PR do?

  • Integrated Login and signup with Twitter and GitHub

Description of Task to be completed?

  • The user is able to sign up / login using their usual twitter and GitHub account.

How should this be manually tested?

  • it can be tested by running {{URL}}/api/auth/twitter in the browser for twitter
  • it can also be tested by running {{URL}}/api/auth/github in the browser for twitter

Any background context you want to provide?

  • None

What are the relevant pivotal tracker stories?

  • 164489784

Screenshots (if appropriate)

Screen Shot 2019-04-03 at 18 58 10

Screen Shot 2019-04-05 at 11 06 29

Questions:

  • None

@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 17:32 Inactive
GetSocialTwitter(
token, tokenSecret, profile, done
);
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

async (token, tokenSecret, profile, done) => {
GetSocialTwitter(
token, tokenSecret, profile, done
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

callbackURL: process.env.TWITTER_CALLBACK,
},
async (token, tokenSecret, profile, done) => {
GetSocialTwitter(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

* @author Jacques Nyilinkindi
* @returns Twitter strategy
*/
const Twitter = new TwitterStrategy({

Choose a reason for hiding this comment

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

Expected a newline after '(' function-paren-newline

@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from 892ad58 to e2ecaee Compare April 9, 2019 17:43
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 17:43 Inactive
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 18:22 Inactive
GetSocialGithub(
accessToken, refreshToken, profile, done
);
});

Choose a reason for hiding this comment

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

Expected a newline before ')' function-paren-newline

async (accessToken, refreshToken, profile, done) => {
GetSocialGithub(
accessToken, refreshToken, profile, done
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

callbackURL: process.env.GITHUB_CALLBACK
},
async (accessToken, refreshToken, profile, done) => {
GetSocialGithub(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

* @author Jacques Nyilinkindi
* @returns Github strategy
*/
const Github = new GithubStrategy({

Choose a reason for hiding this comment

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

Expected a newline after '(' function-paren-newline

* @returns { Object } user
*/
const GetSocialGithub = async (accessToken, refreshToken, profile, done) => {
console.log(profile);

Choose a reason for hiding this comment

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

Unexpected console statement no-console

@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from e5976b1 to 9cf09ac Compare April 9, 2019 18:30
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 18:30 Inactive
async (token, tokenSecret, profile, done) => {
GetSocialTwitter(
token, tokenSecret, profile, done
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

callbackURL: process.env.TWITTER_CALLBACK,
},
async (token, tokenSecret, profile, done) => {
GetSocialTwitter(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

async (accessToken, refreshToken, profile, done) => {
GetSocialGithub(
accessToken, refreshToken, profile, done
);

Choose a reason for hiding this comment

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

Unexpected newline before ')' function-paren-newline

callbackURL: process.env.GITHUB_CALLBACK
},
async (accessToken, refreshToken, profile, done) => {
GetSocialGithub(

Choose a reason for hiding this comment

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

Unexpected newline after '(' function-paren-newline

@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from 9cf09ac to d5e3853 Compare April 9, 2019 18:52
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 18:52 Inactive
@jnkindi jnkindi changed the title #164489784 Integrate login with twitter and GitHub #164489784 Integrate login with Twitter and GitHub Apr 9, 2019
@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from d5e3853 to d061792 Compare April 9, 2019 18:57
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 9, 2019 18:57 Inactive
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 10, 2019 08:58 Inactive
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 10, 2019 16:34 Inactive
@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from 7e3293b to b4a69f2 Compare April 12, 2019 12:42
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 12, 2019 12:43 Inactive
@Inclet Inclet temporarily deployed to strikers-ah-backend-stag-pr-20 April 12, 2019 16:02 Inactive
@jnkindi jnkindi force-pushed the ft-login-with-twitter-and-github-164489784 branch from df86222 to c30abbb Compare April 12, 2019 16:12


app.use('/api/articles', articleRoutes);
app.use('/api/users', user);

Choose a reason for hiding this comment

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

'user' is not defined no-undef

@Inclet Inclet requested a deployment to strikers-ah-backend-stag-pr-20 April 16, 2019 09:41 Abandoned
@cyrielo cyrielo merged commit 779429f into develop Apr 16, 2019
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