Module: ExvoAuth::Config

Defined in:
lib/exvo_auth/config.rb

Class Method Summary collapse

Class Method Details

.callback_keyObject



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

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

.callback_key=(callback_key) ⇒ Object



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

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

.client_idObject



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

def self.client_id
  @@client_id
end

.client_id=(client_id) ⇒ Object



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

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

.client_secretObject



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

def self.client_secret
  @@client_secret
end

.client_secret=(client_secret) ⇒ Object



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

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

.hostObject



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

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

.host=(host) ⇒ Object



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

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

.require_sslObject



39
40
41
42
43
44
45
# File 'lib/exvo_auth/config.rb', line 39

def self.require_ssl
  if @@require_ssl.nil?
    @@require_ssl = true
  else
    @@require_ssl
  end
end

.require_ssl=(require_ssl) ⇒ Object

Set this to false during development ONLY!



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

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