Module: Authhub::ClassMethods

Defined in:
lib/authhub/helper.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_with_authhub(app, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/authhub/helper.rb', line 10

def authenticate_with_authhub(app, options = {})
	cattr_accessor :authhub_options
	self.authhub_options = {
		:server => "authhub.com",
		:authserver => "authhub.com",
		:app => app}
	self.authhub_options.merge!(options)
	send :include, InstanceMethods
	before_filter :auth_with_authhub
end