Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Gracefully handle Google OAuth failures from Maker App #38245
Gracefully handle Google OAuth failures from Maker App #38245
Changes from 2 commits
19f2bd3
1cfeb5f
abcfdaa
30e87d0
6e87b4e
e2e0f8b
3a37b35
78d99b2
eb2d245
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're making a change to the route in the maker app anyways, i think we should clean up the method names for the routes for this feature -- there are some incorrect/mismatched names and conventions that make it sound like these routes work for any login, when they only currently work for google.
in our routes file:
code-dot-org/dashboard/config/routes.rb
Lines 53 to 55 in 043945b
the actual URLs are correct, but the method names (e.g.,
maker#login_code
) don't match, so we should change the method names to make it clear that these routes are currently meant for google only.in the controller file:
code-dot-org/dashboard/app/controllers/maker_controller.rb
Lines 116 to 136 in 043945b
the comment above each route here is incorrect. for the first one,
maker#login_code
, we can see from the routes file that the URL isGET /maker/google_oauth_login_code
. these are definitely just mistakes we missed during code review.i think any/all of these changes should be made in a follow-up PR, but i wanted to call them out here