Skip to content

Implement GitHub OAuth authentication and upgrade to Ruby 3.4.7/Rails 8.1#149

Merged
adamswonder merged 3 commits intoAfrican-Ruby-Community:mainfrom
JudahSan:events-and-chapters
Mar 4, 2026
Merged

Implement GitHub OAuth authentication and upgrade to Ruby 3.4.7/Rails 8.1#149
adamswonder merged 3 commits intoAfrican-Ruby-Community:mainfrom
JudahSan:events-and-chapters

Conversation

@JudahSan
Copy link
Collaborator

@JudahSan JudahSan commented Mar 2, 2026

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:

  • Added GitHub OAuth for sign-in/sign-up via OmniAuth
  • Created OmniauthCallbacksController to handle OAuth responses
  • Enhanced UI with GitHub authentication buttons and dismissible alerts
  • Updated user model to support OAuth with external account validations
  • Added dependencies: omniauth, omniauth-github, omniauth-rails_csrf_protection
  • Auto-populates user attributes from GitHub data
  • Updated tests and locales for OAuth handling
  • Upgraded Ruby to 3.4.7 and Rails to 8.1

…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
@JudahSan JudahSan requested a review from adamswonder March 2, 2026 17:16
@adamswonder adamswonder merged commit 016f7e5 into African-Ruby-Community:main Mar 4, 2026
0 of 2 checks passed
@JudahSan JudahSan deleted the events-and-chapters branch March 8, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants