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.
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_optional_params = GoToWebinar::Auth::Configuration. @token_url = GoToWebinar::Auth::Configuration.token_url @auth_scheme = GoToWebinar::Auth::Configuration.auth_scheme end |
Instance Attribute Details
#auth_scheme ⇒ Object
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_params ⇒ Object
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 end |
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
4 5 6 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 4 def @authorize_url end |
#basic_auth_password ⇒ Object
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_username ⇒ Object
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_key ⇒ Object
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_url ⇒ Object
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_key ⇒ Object
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 |
#site ⇒ Object
Returns the value of attribute site.
3 4 5 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 3 def site @site end |
#token_url ⇒ Object
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_scheme ⇒ Object
32 33 34 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 32 def self.auth_scheme 'basic_auth' end |
.authorize_optional_params ⇒ Object
24 25 26 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 24 def self. { response_type: "code" } end |
.authorize_url ⇒ Object
20 21 22 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 20 def self. '/oauth/v2/authorize' end |
.site ⇒ Object
16 17 18 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 16 def self.site 'https://api.getgo.com' end |
.token_url ⇒ Object
28 29 30 |
# File 'lib/go_to_webinar/auth/configuration.rb', line 28 def self.token_url '/oauth/v2/token' end |