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 +4 -4
- data/README.md +31 -5
- data/lib/omniauth/streamlabs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d9dfa18426ce2234b81e8c10e0496cd0c38738
|
4
|
+
data.tar.gz: 92c0ed7685c23480331f74ebf1c5b2ff8e999cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
##
|
31
|
+
## Auth Hash
|
24
32
|
|
25
|
-
|
33
|
+
Here's an example *Auth Hash* available in `request.env['omniauth.auth']`:
|
26
34
|
|
27
|
-
|
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).
|