Module: ExvoAuth::Config

Defined in:
lib/exvo_auth/config.rb

Class Method Summary collapse

Class Method Details

.callback_keyObject



19
20
21
# File 'lib/exvo_auth/config.rb', line 19

def self.callback_key
  @@callback_key ||= '_callback'
end

.callback_key=(callback_key) ⇒ Object



23
24
25
# File 'lib/exvo_auth/config.rb', line 23

def self.callback_key=(callback_key)
  @@callback_key = callback_key 
end

.cfs_idObject



53
54
55
# File 'lib/exvo_auth/config.rb', line 53

def self.cfs_id
  "fb0e7bd5864aa0186630212d800af8a6"
end

.client_idObject



27
28
29
# File 'lib/exvo_auth/config.rb', line 27

def self.client_id
  @@client_id ||= nil
end

.client_id=(client_id) ⇒ Object



31
32
33
# File 'lib/exvo_auth/config.rb', line 31

def self.client_id=(client_id)
  @@client_id = client_id
end

.client_secretObject



35
36
37
# File 'lib/exvo_auth/config.rb', line 35

def self.client_secret
  @@client_secret ||= nil 
end

.client_secret=(client_secret) ⇒ Object



39
40
41
# File 'lib/exvo_auth/config.rb', line 39

def self.client_secret=(client_secret)
  @@client_secret = client_secret
end

.debugObject



2
3
4
5
# File 'lib/exvo_auth/config.rb', line 2

def self.debug
  @@debug = false unless defined?(@@debug)
  @@debug
end

.debug=(debug) ⇒ Object



7
8
9
# File 'lib/exvo_auth/config.rb', line 7

def self.debug=(debug)
  @@debug = debug
end

.hostObject



11
12
13
# File 'lib/exvo_auth/config.rb', line 11

def self.host 
  @@host ||= 'https://auth.exvo.com' 
end

.host=(host) ⇒ Object



15
16
17
# File 'lib/exvo_auth/config.rb', line 15

def self.host=(host) 
  @@host = host 
end

.require_sslObject



43
44
45
46
# File 'lib/exvo_auth/config.rb', line 43

def self.require_ssl
  @@require_ssl = true unless defined?(@@require_ssl)
  @@require_ssl
end

.require_ssl=(require_ssl) ⇒ Object

Set this to false during development ONLY!



49
50
51
# File 'lib/exvo_auth/config.rb', line 49

def self.require_ssl=(require_ssl)
  @@require_ssl = require_ssl
end