Skip to content

Instantly share code, notes, and snippets.

@bbtdev
Last active January 11, 2019 16:39
Show Gist options
  • Save bbtdev/ba3fca2b26bc3f0bb6b31bf1f93bd214 to your computer and use it in GitHub Desktop.
Save bbtdev/ba3fca2b26bc3f0bb6b31bf1f93bd214 to your computer and use it in GitHub Desktop.
Rails.application.config.middleware.use OmniAuth::Builder do
provider :testing, Settings.oauth.testing.key, Settings.oauth.testing.secret
end
module OmniAuth
module Strategies
class Testing
include OmniAuth::Strategy
option :name, :testing
def request_phase; end
end
Received wrong number of arguments. ["xxxx", "yyyyyyyyyy"]
Trace:
# Make sure that all of the args have been dealt with, otherwise error out.
fail(ArgumentError.new("Received wrong number of arguments. #{args.inspect}")) unless args.empty?
yield options if block_given?
end
lib/omniauth/strategy.rb:in `initialize'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment