omniauth-streamlabs 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: efc3e2d0ab4e64c225d4f77ed8432331e35b5b79
4
- data.tar.gz: a1c53c61be87b9db4e23710e989a2f6f02dc4375
3
+ metadata.gz: 83d9dfa18426ce2234b81e8c10e0496cd0c38738
4
+ data.tar.gz: 92c0ed7685c23480331f74ebf1c5b2ff8e999cf4
5
5
  SHA512:
6
- metadata.gz: 4911d9ba97994da9366fd079f9997d0a7575fc34a488a93db82acfd197ebddce327b427408f0ac56d2aa98e3ff97a895736f618bdcd265984c5ca92d9fdcc9d9
7
- data.tar.gz: ba64ce507488bbcf03d1e6d2144f79511e4662bec8cc49539d23cf802a7672d374fb1e39e6d7a068db9fcf3173f32a25b33cc711ca543eeb0bebbf9167c4953d
6
+ metadata.gz: a779a89689278d5bbcac6cb44276918de50a0e0d2cdc95ab3d7a33214d224c0e6ad5e306b5ed23d94396d1af932d033474728cd57d1539410576de90412ad725
7
+ data.tar.gz: 59e6c679663f07cc960488f4e1c79dc8bb159fcecdb653713146d4cfa8b334436188f0366fc5f996246f672bea70b09f0c3fa21ac16be9aa5c23ad8df848825e
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Omniauth::Streamlabs
2
2
 
3
+ An Omniauth strategy for Streamlabs
4
+
3
5
  ## Installation
4
6
 
5
7
  Add this line to your application's Gemfile:
@@ -18,19 +20,43 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ Here's an example for adding the middleware to a Rails app in `config/initializers/omniauth.rb`:
24
+
25
+ ```ruby
26
+ Rails.application.config.middleware.use OmniAuth::Builder do
27
+ provider :twitch, ENV["STREAMLABS_CLIENT_ID"], ENV["STREAMLABS_CLIENT_SECRET"]
28
+ end
29
+ ```
22
30
 
23
- ## Development
31
+ ## Auth Hash
24
32
 
25
- 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.
33
+ Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
26
34
 
27
- 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).
35
+ ```ruby
36
+ {
37
+ provider: 'streamlabs',
38
+ uid: 12345678,
39
+ info: {
40
+ display_name: 'johndoe',
41
+ name: 'JohnDoe',
42
+ },
43
+ credentials: {
44
+ token: 'asdfghjklasdfghjklasdfghjkl', # OAuth 2.0 access_token, which you may wish to store
45
+ expires: false # this will always be false
46
+ },
47
+ extra: {
48
+ raw_info: {
49
+ display_name: 'johndoe',
50
+ name: 'JohnDoe',
51
+ _id: 12345678,
52
+ }
53
+ }
54
+ }
28
55
 
29
56
  ## Contributing
30
57
 
31
58
  Bug reports and pull requests are welcome on GitHub at https://github.com/prognostikos/omniauth-streamlabs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
32
59
 
33
-
34
60
  ## License
35
61
 
36
62
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Streamlabs
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-streamlabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rohrer