Sha256: d802d598d44668eea0431b848903011a045f60ff745aa29ecf11ab03a96989e0
Contents?: true
Size: 636 Bytes
Versions: 37
Compression:
Stored size: 636 Bytes
Contents
require 'challah/authenticators/api_key' require 'challah/authenticators/password' module Challah module Authenticators # Register a new authenticator. # # Usage: # # Challah.register_authenticator(:facebook, FacebookAuthenticator) # # Each authenticator class should have a class method named match? # that takes a user and a number of arguments and returns true or false. def register_authenticator(name, klass) @authenticators[name] = klass end # Get the list of all authenticators that have been registered. def authenticators @authenticators.dup end end end
Version data entries
37 entries across 37 versions & 2 rubygems