You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
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
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.
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.
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.
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.
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
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
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
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
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
@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?
@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.
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.
@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.
Activity
allella commentedon Dec 19, 2019
Reposting notes from earlier conversations.
#110 (comment)
#110 (comment)
QuincyLarson commentedon Dec 21, 2019
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.
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.
[-]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.[/+][-]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.[/+]megajon commentedon Jan 29, 2020
Am I able to assign this issue to myself since it's part of the prototype I'm working on?
allella commentedon Jan 29, 2020
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.
vkWeb commentedon Jan 30, 2020
@megajon Great - we will love to see your work on this :) Please keep us posted with screenshots.
[-]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.[/+]allella commentedon Feb 29, 2020
@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?
allella commentedon Feb 29, 2020
Also, Quincy closed #305 and I'm copying over comments from it so they don't get missed.
#305 (comment)
#305 (comment)
AryanJ-NYC commentedon Mar 1, 2020
How are we doing with Google OAuth keys? I think we need to register this application to get some, eh?
Zeko369 commentedon Mar 1, 2020
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
AryanJ-NYC commentedon Mar 1, 2020
Ah, d'oh. I didn't know this was in progress.
pdotsani commentedon Sep 15, 2020
@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?
allella commentedon Sep 15, 2020
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.
ankorGH commentedon Oct 1, 2020
hey @allella @pdotsani what's the status of this issue. I will like to work on it.
pdotsani commentedon Oct 2, 2020
@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.
ankorGH commentedon Oct 2, 2020
@pdotsani I will look into taking another issue unless you need help with it.
allella commentedon Oct 3, 2020
@vkWeb was asking about Passport, so pinging him on this issue.
vkWeb commentedon Oct 4, 2020
@allella I was reading the FAQs on wiki,
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.
allella commentedon Oct 5, 2020
@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.
vkWeb commentedon Oct 5, 2020
@allella Yeap, I'll update the FAQ.
allella commentedon Nov 11, 2020
Closing since the direction changed to using email-based authentication on #437.