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 +4 -4
- data/Gemfile +1 -0
- data/lib/applicaster/accounts.rb +2 -1
- data/lib/omniauth-applicaster/version.rb +1 -1
- data/omniauth-applicaster.gemspec +2 -1
- data/spec/support/webmock_stubs_helper.rb +2 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d313cff55489987764247019e5d52d6a2008991
|
4
|
+
data.tar.gz: 7a878add84b178e96614aaef15edc9f5b0ce4118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba346e9ac54426324abbed47b6240a891151278ff9702674f73adbc1305d2287b52210304a7246ece0ba0a2b89aa717b69b1f0b7a5da2aa18b8187ec45a5f4b
|
7
|
+
data.tar.gz: fcad4d23bde6ae0010cdd497fe27b443c532a34e96402002841233ba1303750a8ff46d9675d3996409933fcc22d2bbb8af5eb64365dab89171728ced0955e97b
|
data/Gemfile
CHANGED
data/lib/applicaster/accounts.rb
CHANGED
@@ -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
|
@@ -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.
|
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
|
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.
|
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:
|
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.
|
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.
|
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.
|
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
|