omniauth-applicaster 1.7.1 → 1.8.0

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: b63f2fa4077da4d8afbd421b6b62e7a462196732
4
- data.tar.gz: f3016a73e3db235b262f7dbc78acaccd4f844836
3
+ metadata.gz: 3d313cff55489987764247019e5d52d6a2008991
4
+ data.tar.gz: 7a878add84b178e96614aaef15edc9f5b0ce4118
5
5
  SHA512:
6
- metadata.gz: 82c0e7c6be01c4f3a48e3bc9d0e863b696f1e98b7656cbf96cba356c08b0148a9f8a0d212c19cdb2c74d83209c4e77563ec720dd40450570afaff5c17297e61d
7
- data.tar.gz: 3e9d851c6deebfc37f21effcb5f1502f197e3dd18bd56ac7050c290c96b07f6a8c86614bcca87d9883fb1816a047971f109688056533157157da61930cd5d9a1
6
+ metadata.gz: bba346e9ac54426324abbed47b6240a891151278ff9702674f73adbc1305d2287b52210304a7246ece0ba0a2b89aa717b69b1f0b7a5da2aa18b8187ec45a5f4b
7
+ data.tar.gz: fcad4d23bde6ae0010cdd497fe27b443c532a34e96402002841233ba1303750a8ff46d9675d3996409933fcc22d2bbb8af5eb64365dab89171728ced0955e97b
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'pry'
7
+ gem 'excon', '< 0.63'
@@ -20,7 +20,7 @@ module Applicaster
20
20
 
21
21
  Faraday.new(conn_opts) do |conn|
22
22
  if options[:token]
23
- conn.request :oauth2, options[:token]
23
+ conn.request :oauth2, options[:token], token_type: 'param'
24
24
  end
25
25
 
26
26
  conn.request :json
@@ -89,6 +89,7 @@ module Applicaster
89
89
  config.client_secret,
90
90
  site: config.base_url,
91
91
  authorize_url: "/oauth/authorize",
92
+ auth_scheme: :basic_auth,
92
93
  )
93
94
  end
94
95
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Applicaster
3
- VERSION = "1.7.1"
3
+ VERSION = "1.8.0"
4
4
  end
5
5
  end
@@ -24,7 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "webmock"
25
25
 
26
26
  spec.add_dependency "omniauth-oauth2"
27
- spec.add_dependency "faraday", "~> 0.9.1"
27
+ spec.add_dependency "faraday", "~> 0.11"
28
+ spec.add_dependency "oauth2", "> 1.3.1"
28
29
  spec.add_dependency "faraday_middleware"
29
30
  spec.add_dependency "excon"
30
31
  spec.add_dependency "virtus"
@@ -10,8 +10,9 @@ module WebmockStubsHelper
10
10
  end
11
11
 
12
12
  def stub_client_credentials_request
13
- stub_request(:post, "https://client-id:client-secret@#{accounts_host}/oauth/token")
13
+ stub_request(:post, "https://#{accounts_host}/oauth/token")
14
14
  .with(:body => {"grant_type"=>"client_credentials"})
15
+ .with(basic_auth: ["client-id", "client-secret"])
15
16
  .to_return(successful_json_response(access_token: "client-credentials-token"))
16
17
  end
17
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-applicaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neer Friedman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-27 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.1
89
+ version: '0.11'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.9.1
96
+ version: '0.11'
97
+ - !ruby/object:Gem::Dependency
98
+ name: oauth2
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.3.1
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.3.1
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: faraday_middleware
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -194,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
208
  version: '0'
195
209
  requirements: []
196
210
  rubyforge_project:
197
- rubygems_version: 2.4.5.1
211
+ rubygems_version: 2.5.2.1
198
212
  signing_key:
199
213
  specification_version: 4
200
214
  summary: Omniauth strategy for http://accounts.applicaster.com