Sha256: 12bd6b76bc5515bad7507f1e90b7702075b96dfcedb177304c939ac30ce86ee8

Contents?: true

Size: 541 Bytes

Versions: 34

Compression:

Stored size: 541 Bytes

Contents

module Challah
  module Providers
    # Get a list of all authorization providers other than password provider
    def custom_providers
      providers.reject { |k, v| k == :password }
    end

    # Register a new authorization provider.
    #
    # Usage:
    #
    #     Challah.register_provider(:facebook, FacebookProvider)
    def register_provider(name, klass)
      @providers[name] = klass
    end

    # Get the list of all authorization providers that have been registered.
    def providers
      @providers.dup
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
challah-1.6.1 lib/challah/providers.rb
challah-1.6.0 lib/challah/providers.rb
challah-1.5.0 lib/challah/providers.rb
challah-1.4.2 lib/challah/providers.rb
challah-1.4.1 lib/challah/providers.rb
challah-1.4.0 lib/challah/providers.rb
challah-1.3.3 lib/challah/providers.rb
challah-1.3.2 lib/challah/providers.rb
challah-1.3.1 lib/challah/providers.rb
challah-1.3.0 lib/challah/providers.rb
challah-1.2.11 lib/challah/providers.rb
challah-1.2.10 lib/challah/providers.rb
challah-1.2.9 lib/challah/providers.rb
challah-1.2.8 lib/challah/providers.rb
challah-1.2.7 lib/challah/providers.rb
challah-1.2.6 lib/challah/providers.rb
challah-1.2.5 lib/challah/providers.rb
challah-1.2.5.pre lib/challah/providers.rb
challah-1.2.4 lib/challah/providers.rb
challah-1.2.3 lib/challah/providers.rb