Last active
January 11, 2019 16:39
-
-
Save bbtdev/ba3fca2b26bc3f0bb6b31bf1f93bd214 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.middleware.use OmniAuth::Builder do | |
provider :testing, Settings.oauth.testing.key, Settings.oauth.testing.secret | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OmniAuth | |
module Strategies | |
class Testing | |
include OmniAuth::Strategy | |
option :name, :testing | |
def request_phase; end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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