Class: GoToWebinar::Auth::Configuration
- Inherits:
-
Object
- Object
- GoToWebinar::Auth::Configuration
- Defined in:
- lib/go_to_webinar/auth/configuration.rb
Instance Attribute Summary collapse
-
#auth_scheme ⇒ Object
Returns the value of attribute auth_scheme.
-
#authorize_optional_params ⇒ Object
Returns the value of attribute authorize_optional_params.
-
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
-
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
-
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#site ⇒ Object
Returns the value of attribute site.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
Class Method Summary collapse
- .auth_scheme ⇒ Object
- .authorize_optional_params ⇒ Object
- .authorize_url ⇒ Object
- .site ⇒ Object
- .token_url ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_optional_params = self.class. @token_url = self.class.token_url @auth_scheme = self.class.auth_scheme end |
Instance Attribute Details
#auth_scheme ⇒ Object
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_params ⇒ Object
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 end |
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
7 8 9 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 7 def @authorize_url end |
#basic_auth_password ⇒ Object
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_username ⇒ Object
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_key ⇒ Object
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_url ⇒ Object
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_key ⇒ Object
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 |
#site ⇒ Object
Returns the value of attribute site.
6 7 8 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 6 def site @site end |
#token_url ⇒ Object
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_scheme ⇒ Object
35 36 37 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 35 def self.auth_scheme 'basic_auth' end |
.authorize_optional_params ⇒ Object
27 28 29 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 27 def self. { response_type: 'code' } end |
.authorize_url ⇒ Object
23 24 25 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 23 def self. '/oauth/v2/authorize' end |
.site ⇒ Object
19 20 21 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 19 def self.site 'https://api.getgo.com' end |
.token_url ⇒ Object
31 32 33 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 31 def self.token_url '/oauth/v2/token' end |