Sha256: d412faa4d95f37085e4b5dbae9ab3928cd605357e3bdd18148e8f0898698a932

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

require "omniauth"
require "omniauth/jets_csrf_protection/token_verifier"

module OmniAuth
  module JetsCsrfProtection
    class Turbine < Jets::Turbine
      initializer "omniauth-jets_csrf_protection.initialize" do
        OmniAuth.config.request_validation_phase = TokenVerifier.new
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-jets_csrf_protection-0.1.0 lib/omniauth/jets_csrf_protection/turbine.rb