Class: GoToWebinar::Auth::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/go_to_webinar/auth/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
16
17
# File 'lib/go_to_webinar/auth/configuration.rb', line 11

def initialize
  @site = self.class.site
  @authorize_url = self.class.authorize_url
  @authorize_optional_params = self.class.authorize_optional_params
  @token_url = self.class.token_url
  @auth_scheme = self.class.auth_scheme
end

Instance Attribute Details

#auth_schemeObject

Returns the value of attribute auth_scheme.



7
8
9
# File 'lib/go_to_webinar/auth/configuration.rb', line 7

def auth_scheme
  @auth_scheme
end

#authorize_optional_paramsObject

Returns the value of attribute authorize_optional_params.



9
10
11
# File 'lib/go_to_webinar/auth/configuration.rb', line 9

def authorize_optional_params
  @authorize_optional_params
end

#authorize_urlObject

Returns the value of attribute authorize_url.



7
8
9
# File 'lib/go_to_webinar/auth/configuration.rb', line 7

def authorize_url
  @authorize_url
end

#basic_auth_passwordObject

Returns the value of attribute basic_auth_password.



8
9
10
# File 'lib/go_to_webinar/auth/configuration.rb', line 8

def basic_auth_password
  @basic_auth_password
end

#basic_auth_usernameObject

Returns the value of attribute basic_auth_username.



8
9
10
# File 'lib/go_to_webinar/auth/configuration.rb', line 8

def basic_auth_username
  @basic_auth_username
end

#consumer_keyObject

Returns the value of attribute consumer_key.



6
7
8
# File 'lib/go_to_webinar/auth/configuration.rb', line 6

def consumer_key
  @consumer_key
end

#redis_urlObject

Returns the value of attribute redis_url.



6
7
8
# File 'lib/go_to_webinar/auth/configuration.rb', line 6

def redis_url
  @redis_url
end

#secret_keyObject

Returns the value of attribute secret_key.



6
7
8
# File 'lib/go_to_webinar/auth/configuration.rb', line 6

def secret_key
  @secret_key
end

#siteObject

Returns the value of attribute site.



6
7
8
# File 'lib/go_to_webinar/auth/configuration.rb', line 6

def site
  @site
end

#token_urlObject

Returns the value of attribute token_url.



7
8
9
# File 'lib/go_to_webinar/auth/configuration.rb', line 7

def token_url
  @token_url
end

Class Method Details

.auth_schemeObject



35
36
37
# File 'lib/go_to_webinar/auth/configuration.rb', line 35

def self.auth_scheme
  'basic_auth'
end

.authorize_optional_paramsObject



27
28
29
# File 'lib/go_to_webinar/auth/configuration.rb', line 27

def self.authorize_optional_params
  { response_type: 'code' }
end

.authorize_urlObject



23
24
25
# File 'lib/go_to_webinar/auth/configuration.rb', line 23

def self.authorize_url
  '/oauth/v2/authorize'
end

.siteObject



19
20
21
# File 'lib/go_to_webinar/auth/configuration.rb', line 19

def self.site
  'https://api.getgo.com'
end

.token_urlObject



31
32
33
# File 'lib/go_to_webinar/auth/configuration.rb', line 31

def self.token_url
  '/oauth/v2/token'
end