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.



8
9
10
11
12
13
14
# File 'lib/go_to_webinar/auth/configuration.rb', line 8

def initialize
  @site = GoToWebinar::Auth::Configuration.site
  @authorize_url = GoToWebinar::Auth::Configuration.authorize_url
  @authorize_optional_params = GoToWebinar::Auth::Configuration.authorize_optional_params
  @token_url = GoToWebinar::Auth::Configuration.token_url
  @auth_scheme = GoToWebinar::Auth::Configuration.auth_scheme
end

Instance Attribute Details

#auth_schemeObject

Returns the value of attribute auth_scheme.



4
5
6
# File 'lib/go_to_webinar/auth/configuration.rb', line 4

def auth_scheme
  @auth_scheme
end

#authorize_optional_paramsObject

Returns the value of attribute authorize_optional_params.



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

def authorize_optional_params
  @authorize_optional_params
end

#authorize_urlObject

Returns the value of attribute authorize_url.



4
5
6
# File 'lib/go_to_webinar/auth/configuration.rb', line 4

def authorize_url
  @authorize_url
end

#basic_auth_passwordObject

Returns the value of attribute basic_auth_password.



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

def basic_auth_password
  @basic_auth_password
end

#basic_auth_usernameObject

Returns the value of attribute basic_auth_username.



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

def basic_auth_username
  @basic_auth_username
end

#consumer_keyObject

Returns the value of attribute consumer_key.



3
4
5
# File 'lib/go_to_webinar/auth/configuration.rb', line 3

def consumer_key
  @consumer_key
end

#redis_urlObject

Returns the value of attribute redis_url.



3
4
5
# File 'lib/go_to_webinar/auth/configuration.rb', line 3

def redis_url
  @redis_url
end

#secret_keyObject

Returns the value of attribute secret_key.



3
4
5
# File 'lib/go_to_webinar/auth/configuration.rb', line 3

def secret_key
  @secret_key
end

#siteObject

Returns the value of attribute site.



3
4
5
# File 'lib/go_to_webinar/auth/configuration.rb', line 3

def site
  @site
end

#token_urlObject

Returns the value of attribute token_url.



4
5
6
# File 'lib/go_to_webinar/auth/configuration.rb', line 4

def token_url
  @token_url
end

Class Method Details

.auth_schemeObject



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

def self.auth_scheme
  'basic_auth'
end

.authorize_optional_paramsObject



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

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

.authorize_urlObject



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

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

.siteObject



16
17
18
# File 'lib/go_to_webinar/auth/configuration.rb', line 16

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

.token_urlObject



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

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