Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

As a user I can log in or register via Google OAuth 2.0 authentication. #306

Closed

Description

@allella

The consensus was to split the authentication piece out authenication from the RSVP issues(#110 and #278)

The API / code issue was split to #305.

Activity

  1. added
    UI/UX
    on Dec 19, 2019
  2. allella commented on Dec 19, 2019

    @allella
    ContributorAuthor

    Reposting notes from earlier conversations.

    #110 (comment)

    Also, in thinking through documentation for user account and notifications (#262) it's not immediately clear how a "Register" page / step would work with our Google authentication constraint.

    If you're a new user and you've never logged in, then does the Log In page simply direct the user to Google and then the user log in or register steps are handled by Google? If that's the case, then we could use the same UI for the "Log In" page and "Register" page.

    freeCodeCamp has a button that says "Continue with Google" and it pops up a box to log in or create a new Google account.

    #110 (comment)

    If we are only using Google authentication, then the registration page and sign in page is not actually making sense as it has "register with email" form and "login with email" link. Plus, I am not sure if it is relevant to have two separate pages (registration and sign in) since the link "Continue with Google" actually redirect you to the same pop-up box asking the user to choose one of their Google accounts. That is unless I am missing something and something does happen after you either sign in or register (for example, once a user registered, it will take them straight to their profile page so they can add bio details etc).

    It is clear that on the UI side, we need to re-create this. But, In this case (or issue), if the user is not signed in or have never registered with the chapter before, and they clicked the "RSVP" button, a pop up modal with one link could appear indicating the user sign in OR register. Once the user clicked it, it will redirect them to the page where the user chooses one of their Google accounts before taking the user to whatever is required in the next step.

    What is your thought on this?

  3. QuincyLarson commented on Dec 21, 2019

    @QuincyLarson
    Contributor

    I recommend we just put this button in the navigation bar and when people click it, they are immediately taken to Google to give permissions, then redirected back to our root (/) route.

    sign in with Google button

    Once the user is back on / they just see their Google photo in the upper right hand corner and know that they are signed in.

  4. changed the title [-]UI: As a user I can log in or register via Google SSO authentication.[/-] [+]UI: As a user I can log in or register via Google authentication.[/+] on Dec 31, 2019
  5. changed the title [-]UI: As a user I can log in or register via Google authentication.[/-] [+]UI: As a user I can log in or register via Google OAuth 2.0 authentication.[/+] on Jan 1, 2020
  6. megajon commented on Jan 29, 2020

    @megajon
    Contributor

    Am I able to assign this issue to myself since it's part of the prototype I'm working on?

  7. allella commented on Jan 29, 2020

    @allella
    ContributorAuthor

    Thanks @megajon

    @vaibhavsingh97 and #305 are related to this on the code / backend / API side so I suspect he can assist with the technical considerations.

  8. vkWeb commented on Jan 30, 2020

    @vkWeb
    Member

    @megajon Great - we will love to see your work on this :) Please keep us posted with screenshots.

  9. changed the title [-]UI: As a user I can log in or register via Google OAuth 2.0 authentication.[/-] [+]As a user I can log in or register via Google OAuth 2.0 authentication.[/+] on Feb 11, 2020
  10. allella commented on Feb 29, 2020

    @allella
    ContributorAuthor

    @vaibhavsingh97 @megajon for #353 Quincy wanted us to document the initial setup steps for the owner of each Chapter instance.

    We'd previously linked to the Google Sign-In for Websites documentation. Is that the best starting point for this group to use, or is there a better resource?

  11. allella commented on Feb 29, 2020

    @allella
    ContributorAuthor

    Also, Quincy closed #305 and I'm copying over comments from it so they don't get missed.

    #305 (comment)

    yes, We don't want SSO/SAML, we just need OAuth to authorize the user on our platform. Here, we will use google as OAuth

    For those who are wondering what is the difference between OAuth and SSO?
    OAuth is an authorization protocol that allows users to selectively pick permissions to authorize services to use their data. For example, Gitlab uses Github to authorize the user on their platform, once you try to signup using Github, you will be redirected to GitHub to authorize Gitlab to use your personal details and authorize.

    Whereas SSO is not a protocol, you can assume it as a flow for authentication /authorization so that you can use the same credentials to authenticate various services. For example, you can use Google Auth, to authenticate a user to Microsft Office, Github, or other apps. The benefit of using SSO is that they have to remember only a single account username and password, which helps them to authorize in multiple accounts. Basically, SSO also help the organization to manage users in their org

    #305 (comment)

    I don't think we actually want SSO, we probably just want to use google oauth - easy to use with passport: https://github.com/jaredhanson/passport-google-oauth2

  12. AryanJ-NYC commented on Mar 1, 2020

    @AryanJ-NYC
    Contributor

    How are we doing with Google OAuth keys? I think we need to register this application to get some, eh?

  13. Zeko369 commented on Mar 1, 2020

    @Zeko369
    Contributor

    I think that it would be best if everyone got their own keys for this.
    We don't have google auth setup yet, but if you're interested in working with @timmyichen on setting up passport.js and google auth you're free to help

  14. AryanJ-NYC commented on Mar 1, 2020

    @AryanJ-NYC
    Contributor

    Ah, d'oh. I didn't know this was in progress.

  15. pdotsani commented on Sep 15, 2020

    @pdotsani
    Contributor

    @QuincyLarson @allella @Zeko369 So I did a little research and it looks like developers are leveraging the chrome api to get the google auth popup to show. The api seems fairly straightforward and I'll start digging into it, but it looks like we'll need the traditional auth pattern as a backup. Should I make a pr with the traditional auth then iterate with another pr to the chrome api auth? Or should we merge both at once?

  16. allella commented on Sep 15, 2020

    @allella
    ContributorAuthor

    I don't have an opinion. If you don't hear from Fran or Quincy by tomorrow, then feel free to do what you think makes sense.

  17. ankorGH commented on Oct 1, 2020

    @ankorGH
    Contributor

    hey @allella @pdotsani what's the status of this issue. I will like to work on it.

  18. pdotsani commented on Oct 2, 2020

    @pdotsani
    Contributor

    @ankorGH I have a working branch for the feature here. I have the passport library with google and oath2 working. Currently working on getting the one tap authentication method to communicate with the backend (authenticatie the token, serialize user etc.). I can give you more details if you wanna dm me on discord.

  19. ankorGH commented on Oct 2, 2020

    @ankorGH
    Contributor

    @pdotsani I will look into taking another issue unless you need help with it.

  20. allella commented on Oct 3, 2020

    @allella
    ContributorAuthor

    @vkWeb was asking about Passport, so pinging him on this issue.

  21. vkWeb commented on Oct 4, 2020

    @vkWeb
    Member

    @allella I was reading the FAQs on wiki,

    Are there any dependencies or 3rd party services involved?
    
    Authentication: Auth0 will be used an will only support Google logins / authentication for the 
                    early releases of Chapter.
    

    There it was mentioned that we will be using Auth0 for authentication but I was of the opinion that we would be going ahead with passport that's why I confirmed on Discord whether we are using passport or Auth0.

    I looked at @pdotsani's branch, he has done some good work on the authentication side using passport and Google's OAuth API. We will soon see a PR I hope :)

    @allella we should update the FAQ. I think we are not going to use any third party for authentication.

  22. allella commented on Oct 5, 2020

    @allella
    ContributorAuthor

    @vkWeb thanks. The FAQ was written months ago and I agree it can/should be updated. If you or @pdotsani want to write up a sentence about the Passport dependency, then I can update the FAQ. I'm assuming this is Passport or Passport.js with OAuth, but I'm sure you two would be able to provide a better description since I'm not familiar with the package.

  23. vkWeb commented on Oct 5, 2020

    @vkWeb
    Member

    @allella Yeap, I'll update the FAQ.

  24. allella commented on Nov 11, 2020

    @allella
    ContributorAuthor

    Closing since the direction changed to using email-based authentication on #437.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UX

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions