Sha256: 2526d2de2bd0307a3cd9772b628cd7f5de982e8f63e387ecb0facd4ba244c846
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
require 'omniauth' require 'omni_auth/multi_provider/handler' require 'omni_auth/multi_provider/version' module OmniAuth module MultiProvider def self.register(builder, provider_name:, path_prefix: ::OmniAuth.config.path_prefix, **options, &dynamic_options_generator) handler = OmniAuth::MultiProvider::Handler.new(path_prefix: path_prefix, **options, &dynamic_options_generator) static_options = options.merge(path_prefix: path_prefix) builder.provider(provider_name, static_options.merge(handler.provider_options)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-multi-provider-0.2.1 | lib/omni_auth/multi_provider.rb |
omniauth-multi-provider-0.2.0 | lib/omni_auth/multi_provider.rb |