epb-auth-tools 1.0.11 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/http_client.rb +6 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98143d27f89eda42d073be36aeebd2fa9820218f27a7448faaf2c968f22fe74e
4
- data.tar.gz: 5baa025fef34595bed597a7ac79e1b9097a263d6d42c1112431923b9d26b041e
3
+ metadata.gz: 7c69a974d1bb9164006db40fd8d0a1b1c2b108ad62d2876fe9b81a1b1cf866a8
4
+ data.tar.gz: a93004e66d366d23e226e7f7991fe577a5ad9ff908750203414741a20ab36207
5
5
  SHA512:
6
- metadata.gz: 3bb82ad8a2b5e383cdc319a308833ea773a5ca02cb6cee35bad542109b1e4583f6616e631f9afbde756d44408be8827783160c51a9312c85c8e88fa7914eeabb
7
- data.tar.gz: 380e83b5a4cd97cb55234df83c2eb3c1fbf006656266a49d31f59cf60d11ced9b9939071707246fe3ffcb9051e863cb4f5af767f0d54bd3418e52bee204d4e5b
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: token_url,
35
- authorisation_url: 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.11
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-08-23 00:00:00.000000000 Z
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: 2.7.0
76
+ version: 3.1.2
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="