kinetic_sdk 5.0.2.beta.2 → 5.0.2.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kinetic_sdk/core/lib/jwt.rb +2 -2
- data/lib/kinetic_sdk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c3774ff98dc8e3299fd5212ff3773d9adb9f1a9a7a732181cf1bd8a29296b61
|
4
|
+
data.tar.gz: 4221b7660de3a7434394ee2a9688ca9725a33171f7f1674ea3784fa370667b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9df8ea2220f16c8fd37b5a5f073b9d06f868ef0a6af0a2591ca0d1b8eacb56da560b789524c1ea850dff6821931d39530b8e25deae938b06876fa506aa8fd93a
|
7
|
+
data.tar.gz: 195a4ba99756af118359680a3da265af60002c7bbb76aaefc6a13e66af7e8a8361f4b4769e26f4d872db06d3695e59e10b530ce8cab1fa34cb59d4d620e25c41
|
@@ -14,7 +14,7 @@ module KineticSdk
|
|
14
14
|
@logger.info("Retrieving JWT authorization token")
|
15
15
|
url = "#{@server}/app/oauth/token?grant_type=authorization_code&response_type=token&client_id=#{client_id}&code=#{jwt_code}"
|
16
16
|
token_headers = header_accept_json.merge(header_basic_auth(client_id, client_secret))
|
17
|
-
response = post(url, {}, token_headers, {:max_redirects
|
17
|
+
response = post(url, {}, token_headers, { :max_redirects => 0 })
|
18
18
|
|
19
19
|
if response.status == 401
|
20
20
|
raise StandardError.new "#{response.message}, the oauth client id and secret are invalid."
|
@@ -35,7 +35,7 @@ module KineticSdk
|
|
35
35
|
def jwt_code(client_id, headers = default_headers)
|
36
36
|
@logger.info("Retrieving JWT authorization code")
|
37
37
|
url = "#{@server}/app/oauth/authorize?grant_type=authorization_code&response_type=code&client_id=#{client_id}"
|
38
|
-
response = post(url, {}, headers, {:max_redirects
|
38
|
+
response = post(url, {}, headers, { :max_redirects => -1 })
|
39
39
|
|
40
40
|
if response.status == 401
|
41
41
|
raise StandardError.new "#{response.message}: #{response.content["error"]}"
|
data/lib/kinetic_sdk/version.rb
CHANGED