omniauth-fanburst 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth-fanburst.rb +9 -5
- data/lib/omniauth-fanburst/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8fbc2b613ceed4d047fbde5be71259eebfb2237
|
4
|
+
data.tar.gz: 4cda2a42c7375a4111631a4602bc811bce2d681d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c9e7a2fa4a899e715a3c4c68b761b791064ce146854db9e6a89f1377e80c679e95688e517d5335c45823040f72605c37029f68c82ddfd01b78ebce08b579856
|
7
|
+
data.tar.gz: 9e8b17be0480abac584ed7f80e9d63fadffadad6f92fdccf1791f1b1ce415b0ed6e2dfa3630dc97385b8e1d73d86a77944a38791ceecb969ccdd45afe818ff7c
|
data/lib/omniauth-fanburst.rb
CHANGED
@@ -9,10 +9,11 @@ module OmniAuth
|
|
9
9
|
# This is where you pass the options you would pass when
|
10
10
|
# initializing your consumer from the OAuth gem.
|
11
11
|
option :client_options,
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
site: 'https://api.fanburst.com',
|
13
|
+
authorize_url: 'https://fanburst.com/oauth/authorize',
|
14
|
+
token_url: 'https://fanburst.com/oauth/token',
|
15
|
+
connection_opts: { headers: { user_agent: 'omniauth-fanburst', accept: 'application/json', content_type: 'application/json' } },
|
16
|
+
provider_ignores_state: true
|
16
17
|
|
17
18
|
# These are called after authentication has succeeded. If
|
18
19
|
# possible, you should try to set the UID without making
|
@@ -37,8 +38,11 @@ module OmniAuth
|
|
37
38
|
}
|
38
39
|
end
|
39
40
|
|
41
|
+
def callback_url
|
42
|
+
full_host + script_name + callback_path
|
43
|
+
end
|
44
|
+
|
40
45
|
def raw_info
|
41
|
-
puts options.inspect
|
42
46
|
@raw_info ||= access_token.get("me?client_id=#{options.client_id}", body: nil.to_json).parsed
|
43
47
|
end
|
44
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-fanburst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Poli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.6.11
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: OmniAuth strategy for Fanburst using OAuth2
|