Implement GitHub OAuth authentication and upgrade to Ruby 3.4.7/Rails 8.1#149
Merged
adamswonder merged 3 commits intoAfrican-Ruby-Community:mainfrom Mar 4, 2026
Merged
Conversation
…ration - Implemented GitHub OAuth for sign-in and sign-up - Added `OmniauthCallbacksController` to handle OAuth responses and failures - Updated registration, login forms, and views with GitHub authentication buttons - Enhanced UI to differentiate OAuth and normal user sign-ups - Auto-populate user attributes from GitHub data - Modified user model to support OAuth with validations and external account checks - Added new dependencies (`omniauth`, `omniauth-github`, and `omniauth-rails_csrf_protection`) - Updated tests and locales for GitHub OAuth handling - Integrated dismissible alert system for enhanced user feedback during OAuth flow
- Updated multiple dependencies to latest versions, including `@hotwired/stimulus`, `@hotwired/turbo`, `tailwindcss/typography`, and `autoprefixer` - Regenerated `yarn.lock` to include updated integrity hashes and resolutions - Replaced older `esbuild` binary dependencies with newer versions
- Updated `.tool-versions` to use Ruby 3.4.7 - Upgraded Rails from 8.0 to 8.1 in `Gemfile` and `Gemfile.lock` - Regenerated `Gemfile.lock` with the latest bundler version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds GitHub OAuth integration for user authentication and registration while upgrading the application to Ruby 3.4.7 and Rails 8.1.
Key changes:
OmniauthCallbacksControllerto handle OAuth responsesomniauth,omniauth-github,omniauth-rails_csrf_protection