-
Notifications
You must be signed in to change notification settings - Fork 49
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
ADD Github SSO for linking github account #259
Conversation
@wabscale One thing that's different from the NYU OAuth is that in Github OAuth, we don't get the user information once we authenticated. Instead we need to use the |
What you've done is completely reasonable. The NYU OAuth stuff we have requires us to connect out to What we should do is add some kind of a try block around that request out to github so that if it fails, it doesn't just 500. |
We may also want to consider if we should remove the ability for the user to set their github username in this PR. I think maybe we could merge this now, and let teo and some of the others from the graduate team write the frontend piece for this. Then we could comfortably remove the ability for users to set their own github username, and force them to go through the github sso. Regardless, outstanding work Max 👍 |
Yeah sure. I'll just wrap up tonight and let you merge this |
I'll add the dynamic host selection thing tomorrow. My brain stops functioning at this point. |
Nice. There is one last thing to handle here. If you are changing the name of the nyu environment variable, then you'll need to update the kubernetes yaml too. For the api deployment, that is here. That is where the oauth things are loaded from a kubernetes secret into an environment variable for the api. |
I made all the changes I can do for now for this PR. Here are some of the things I think deserves some attention:
|
Hey @AlpacaMax this is good to go. I'm going to try to get you added as a collaborator to the repo so that you can click the button and get the commit in the history fully accredited to you. Will let you know 👍 |
Thank you so much! I'm super honored to be a collaborator! |
This PR is the result of discussions in #240 . It's currently a work in progress. Details of this PR will be explained once all the changes I planned are committed and pushed.
A reminder to @nysteo is that in this PR the
Profile
page in front-end will be modified. Specifically theGithub Username
input box will likely be changed into a button that guides students to github authentication page.