go_to_webinar 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19769749decf1f85cdef785033508713f861605fe4f774eaef3d1c71f1415e35
4
- data.tar.gz: dd1861bb0ee155828a73e4a70d97de4c2acb7ce49de6cf19c3d76ee789e3a299
3
+ metadata.gz: 030fc9f7cfb6d2822a0f5b5a256d6d331fcac1ddfdf8b58638e6955f19136f4a
4
+ data.tar.gz: 3f412135c3e04ad4b05933428bcbb66c50a52514ae8dddc6f01114f2b4299309
5
5
  SHA512:
6
- metadata.gz: 45ae3ffb0b21c2326d60bf37b8daa912d629793b43e2ec2a30be2c434009b28eb80f55fcbc1bada32f69d80986899aad73ffeba1f6979c2c318de15df655d5af
7
- data.tar.gz: 46b4c88cfff2aaf456754b554b1cf195f4c55e5b5379b8073f00bac5ac8cb099f7cd2efa67d9f1d05101531e227b88061531909b69dfa0854be4edb8fa2c35cf
6
+ metadata.gz: 93997131e929a036bf5d3da5d9b87cbfbbea7927c067504637a76747cc03735096def75cab82aeaf3c53f2ac27c63a4299ea05b6a65e3e636157cdf8b2cc279e
7
+ data.tar.gz: d9bb3ae9dc2ee6128d06eddd1c1bea5446108e3be17674bfb4f36aa1db3033bc077a55a150f1adc4e41f41db0623130305a404bf36dd4913f06e38a486bef634
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GoToWebinar
2
2
 
3
- A ruby client to connect GoToWebinar API.
3
+ A ruby client to connect GoToWebinar API V1. Will handle the complete OAuth lifecycle as well utilizing Redis and the OAuth2 gems.
4
4
 
5
5
  ## Installation
6
6
 
@@ -28,17 +28,23 @@ GoToWebinar.setup do |g2w|
28
28
  g2w.organizer_key = ENV['G2W_ORGANIZER_KEY']
29
29
  g2w.access_token = ENV['G2W_ACCESS_TOKEN']
30
30
  end
31
- ```
32
31
 
33
- ## Development
32
+ GoToWebinar::Auth.setup do |oauth2|
33
+ oauth2.redis_url = ENV['REDISCLOUD_URL']
34
+ oauth2.consumer_key = ENV['G2W_CONSUMER_KEY']
35
+ oauth2.secret_key = ENV['G2W_SECRET_KEY']
36
+ oauth2.basic_auth_username = ENV['G2W_BASIC_AUTH_USERNAME']
37
+ oauth2.basic_auth_password = ENV['G2W_BASIC_AUTH_PASSWORD']
38
+ end
39
+ ```
34
40
 
35
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
+ ## Authentication Strategy
36
42
 
37
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
+ This gem will use your username and password to handle all OAuth authentication with GoToWebinar using a basic auth strategy. This does require use of the GoToWebinar log in credentials. It is advised you fully read and understand the different OAuth Flows and use the best one for your situation: https://auth0.com/docs/api-auth/which-oauth-flow-to-use
38
44
 
39
45
  ## Contributing
40
46
 
41
- The repository maintainer only intends to add the functionality necessary for the maintainers need, this will not include all functionality or support all API of GoToWebinar. If you would like to contribute, pull requests are welcome.
47
+ The repository maintainer only intends to add the functionality necessary for the maintainers need, this may not include all functionality or support all API of GoToWebinar. If you would like to contribute, pull requests are welcome.
42
48
 
43
49
  Bug reports and pull requests are welcome on GitHub at https://github.com/RecruitiFi/go_to_webinar.
44
50
 
@@ -6,7 +6,7 @@ module GoToWebinar
6
6
  class Client
7
7
  attr_accessor :basic_auth_username, :basic_auth_password, :consumer_key, :secret_key
8
8
 
9
- def initialize(basic_auth_username:, basic_auth_password:, consumer_key:, secret_key:)
9
+ def initialize(basic_auth_username: nil, basic_auth_password: nil, consumer_key: nil, secret_key: nil)
10
10
  config = GoToWebinar::Auth.configuration
11
11
  @redis = Redis.new(url: config.redis_url)
12
12
  @basic_auth_username = basic_auth_username || config.basic_auth_username
@@ -1,3 +1,3 @@
1
1
  module GoToWebinar
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/go_to_webinar.rb CHANGED
@@ -1,13 +1,13 @@
1
1
  require 'rest-client'
2
2
  require 'json'
3
- require_relative 'go_to_webinar/attendee'
4
- require_relative 'go_to_webinar/client'
5
- require_relative 'go_to_webinar/configuration'
6
- require_relative 'go_to_webinar/auth'
7
- require_relative 'go_to_webinar/registrant'
8
- require_relative 'go_to_webinar/session'
9
- require_relative 'go_to_webinar/version'
10
- require_relative 'go_to_webinar/webinar'
3
+ require 'go_to_webinar/attendee'
4
+ require 'go_to_webinar/client'
5
+ require 'go_to_webinar/configuration'
6
+ require 'go_to_webinar/auth'
7
+ require 'go_to_webinar/registrant'
8
+ require 'go_to_webinar/session'
9
+ require 'go_to_webinar/version'
10
+ require 'go_to_webinar/webinar'
11
11
 
12
12
  module GoToWebinar
13
13
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_to_webinar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Jeremias da Silva