epb-auth-tools 1.0.11 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_client.rb +6 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c69a974d1bb9164006db40fd8d0a1b1c2b108ad62d2876fe9b81a1b1cf866a8
|
4
|
+
data.tar.gz: a93004e66d366d23e226e7f7991fe577a5ad9ff908750203414741a20ab36207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05da3e9b18f8e62f815e1f2f2a5cb9ba560e211a2be30b72b1918936986314cab7f736fd5e00cf1a2b6f3f67c416e0fe75ecfb86d0d91392412bddc89af4fd4
|
7
|
+
data.tar.gz: a371f319aeeb92f2ea99d20741bec03eca014814755c166c804ac6c197df1565e60860a0fb3aae8d03e3767e68b1ecba6b61d895ee9335df8aad5fdf0e291f36
|
data/lib/http_client.rb
CHANGED
@@ -11,7 +11,8 @@ module Auth
|
|
11
11
|
client_secret = nil,
|
12
12
|
auth_server = nil,
|
13
13
|
base_uri = nil,
|
14
|
-
auth_client = OAuth2::Client
|
14
|
+
auth_client = OAuth2::Client,
|
15
|
+
faraday_connection_opts: {}
|
15
16
|
)
|
16
17
|
raise Auth::Errors::ClientHasNoClientId if client_id.nil?
|
17
18
|
raise Auth::Errors::ClientHasNoClientSecret if client_secret.nil?
|
@@ -31,9 +32,10 @@ module Auth
|
|
31
32
|
client_secret,
|
32
33
|
auth_scheme: :request_body,
|
33
34
|
site: site_url,
|
34
|
-
token_url
|
35
|
-
authorisation_url
|
36
|
-
raise_errors: false
|
35
|
+
token_url:,
|
36
|
+
authorisation_url:,
|
37
|
+
raise_errors: false,
|
38
|
+
connection_opts: faraday_connection_opts
|
37
39
|
end
|
38
40
|
|
39
41
|
def refresh
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epb-auth-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lawrence Goldstien <lawrence.goldstien@madetech.com>
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2022-
|
16
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: jwt
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 3.1.2
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|