Sha256: a2f2a5339e8628108717e492a73c908914c0a063eea7a9a3175bce4fa44d57e1
Contents?: true
Size: 767 Bytes
Versions: 2
Compression:
Stored size: 767 Bytes
Contents
# frozen_string_literal: true 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.4.0 | lib/omni_auth/multi_provider.rb |
omniauth-multi-provider-0.3.0 | lib/omni_auth/multi_provider.rb |