Skip to content

Relax omniauth-rails_csrf_protection to allow 2.x#14

Merged
Fivell merged 1 commit into
mainfrom
relax-omniauth-csrf-protection
Jun 2, 2026
Merged

Relax omniauth-rails_csrf_protection to allow 2.x#14
Fivell merged 1 commit into
mainfrom
relax-omniauth-csrf-protection

Conversation

@Fivell
Copy link
Copy Markdown
Member

@Fivell Fivell commented Jun 2, 2026

The pessimistic ~> 1.0 constraint shipped in #13 / v2.1.1 blocked host apps that already had omniauth-rails_csrf_protection 2.0+:

Bundler could not find compatible versions for gem
"omniauth-rails_csrf_protection":
  In snapshot (Gemfile.lock):
    omniauth-rails_csrf_protection (= 2.0.1)
  In Gemfile:
    activeadmin-oidc (~> 2.1) was resolved to 2.1.1, which depends on
      omniauth-rails_csrf_protection (~> 1.0)

The 2.0 release dropped legacy Rails 4 support code but kept the OmniAuth API surface the gem uses (OmniAuth.config.allowed_request_methods, before_request_phase), so both 1.x and 2.x are compatible.

Loosened to >= 1.0, < 3 and bumped to 2.1.2.

Test plan

  • bundle exec rake spec:all — full suite green
  • gem build — no warnings

The previous `~> 1.0` constraint (from #13) blocked host apps that
already shipped omniauth-rails_csrf_protection 2.0+. The 2.0 release
dropped legacy Rails 4 support code but kept the OmniAuth API surface
the gem uses, so both 1.x and 2.x are compatible.

Bump to 2.1.2.
@Fivell Fivell closed this Jun 2, 2026
@Fivell Fivell deleted the relax-omniauth-csrf-protection branch June 2, 2026 17:19
@Fivell Fivell restored the relax-omniauth-csrf-protection branch June 2, 2026 17:27
@Fivell Fivell reopened this Jun 2, 2026
@Fivell Fivell merged commit 2006f47 into main Jun 2, 2026
12 checks passed
@Fivell Fivell deleted the relax-omniauth-csrf-protection branch June 2, 2026 17:27
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.

1 participant