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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81d10845a02c919fdb4f11030d51d8ad2256260c
4
- data.tar.gz: be92a3b7884627f81f780d7c996f09d123f890c3
3
+ metadata.gz: c8fbc2b613ceed4d047fbde5be71259eebfb2237
4
+ data.tar.gz: 4cda2a42c7375a4111631a4602bc811bce2d681d
5
5
  SHA512:
6
- metadata.gz: 165a824e05fa15073c1399eedc72457664f143cad857b35e60538f868531396ee05903fa3c8000927390778d310176cd0f22b61bbef5964fda1c7586cfc7c242
7
- data.tar.gz: e2a65fff7404dde552aed0f21263562d39e6e72dd99655ae43e24828a58da8d8a5e879b21730994690c68564e30a1ca089798beb052b63d722e774fa0d9b5681
6
+ metadata.gz: 0c9e7a2fa4a899e715a3c4c68b761b791064ce146854db9e6a89f1377e80c679e95688e517d5335c45823040f72605c37029f68c82ddfd01b78ebce08b579856
7
+ data.tar.gz: 9e8b17be0480abac584ed7f80e9d63fadffadad6f92fdccf1791f1b1ce415b0ed6e2dfa3630dc97385b8e1d73d86a77944a38791ceecb969ccdd45afe818ff7c
@@ -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
- 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' } }
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
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Fanburst
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'.freeze
4
4
  end
5
5
  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.2
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: 2016-12-07 00:00:00.000000000 Z
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.5.1
63
+ rubygems_version: 2.6.11
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: OmniAuth strategy for Fanburst using OAuth2