diff --git a/Gemfile.lock b/Gemfile.lock index e2a8b2e..ab78537 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,8 @@ PATH kiqr (0.1.0) devise (~> 4.9, >= 4.9.3) devise-two-factor (~> 5.0.0) + omniauth (~> 2.1.1) + omniauth-rails_csrf_protection (~> 1.0.1) public_uid (~> 2.2) rails (>= 7.1.3.2) @@ -152,6 +154,7 @@ GEM i18n (>= 1.8.11, < 2) globalid (1.2.1) activesupport (>= 6.1) + hashie (5.0.0) i18n (1.14.4) concurrent-ruby (~> 1.0) importmap-rails (2.0.1) @@ -217,6 +220,13 @@ GEM racc (~> 1.4) nokogiri (1.16.4-x86_64-linux) racc (~> 1.4) + omniauth (2.1.2) + hashie (>= 3.4.6) + rack (>= 2.2.3) + rack-protection + omniauth-rails_csrf_protection (1.0.1) + actionpack (>= 4.2) + omniauth (~> 2.0) orm_adapter (0.5.0) parallel (1.24.0) parser (3.3.0.5) @@ -231,6 +241,9 @@ GEM nio4r (~> 2.0) racc (1.7.3) rack (3.0.10) + rack-protection (4.0.0) + base64 (>= 0.1.0) + rack (>= 3.0.0, < 4) rack-session (2.0.0) rack (>= 3.0.0) rack-test (2.1.0) @@ -276,7 +289,7 @@ GEM rdoc (6.6.3.1) psych (>= 4.0.0) regexp_parser (2.9.0) - reline (0.5.2) + reline (0.5.3) io-console (~> 0.5) responders (3.1.1) actionpack (>= 5.2) diff --git a/gems/kiqr/kiqr.gemspec b/gems/kiqr/kiqr.gemspec index df362c8..8aede1e 100644 --- a/gems/kiqr/kiqr.gemspec +++ b/gems/kiqr/kiqr.gemspec @@ -20,5 +20,7 @@ Gem::Specification.new do |spec| spec.add_dependency "rails", ">= 7.1.3.2" spec.add_dependency "devise", "~> 4.9", ">= 4.9.3" spec.add_dependency "devise-two-factor", "~> 5.0.0" + spec.add_dependency "omniauth", "~> 2.1.1" + spec.add_dependency "omniauth-rails_csrf_protection", "~> 1.0.1" spec.add_dependency "public_uid", "~> 2.2" end diff --git a/gems/kiqr/lib/kiqr.rb b/gems/kiqr/lib/kiqr.rb index 9f3c664..d457068 100644 --- a/gems/kiqr/lib/kiqr.rb +++ b/gems/kiqr/lib/kiqr.rb @@ -5,6 +5,9 @@ require "devise-two-factor" require "public_uid" +require "omniauth" +require "omniauth/rails_csrf_protection" + module Kiqr autoload :ApplicationService, "kiqr/application_service" autoload :Config, "kiqr/config"