epb-auth-tools 1.0.11 → 1.2.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 +5 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98143d27f89eda42d073be36aeebd2fa9820218f27a7448faaf2c968f22fe74e
4
- data.tar.gz: 5baa025fef34595bed597a7ac79e1b9097a263d6d42c1112431923b9d26b041e
3
+ metadata.gz: ed767376b0f923d70b38aa2d2ab1cb7cdc2189fb2d8d9d2a532900be890dd206
4
+ data.tar.gz: eadcd914df44a05b07d8a4902bf57bae04a418573182a0c2ff8726947d607d28
5
5
  SHA512:
6
- metadata.gz: 3bb82ad8a2b5e383cdc319a308833ea773a5ca02cb6cee35bad542109b1e4583f6616e631f9afbde756d44408be8827783160c51a9312c85c8e88fa7914eeabb
7
- data.tar.gz: 380e83b5a4cd97cb55234df83c2eb3c1fbf006656266a49d31f59cf60d11ced9b9939071707246fe3ffcb9051e863cb4f5af767f0d54bd3418e52bee204d4e5b
6
+ metadata.gz: 67d8e583bd4107f927ffe74757f2dccd14f533af0b0974f183554fcc850fce6a1bf163554096bd84d6e295c49f53d1d98bcd9b3e63f1eec6258db2fdf2b3620b
7
+ data.tar.gz: df579769a9daeeaac7862f77fca1a638569d0626e8976dff568eeb5e970cdce2e997ca2645472cb0dd3b1b22018522a12d4359b6e386948b02e8378cc2ab6c27
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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lawrence Goldstien <lawrence.goldstien@madetech.com>
@@ -10,10 +10,10 @@ authors:
10
10
  - Kevin Keenoy <kevin.keenoy@levellingup.gov.uk>
11
11
  - Douglas Greenshields <douglas.greenshields@levellingup.gov.uk>
12
12
  - Aga Dufrat <aga.dufrat@levellingup.gov.uk>
13
- autorequire:
13
+ - Abdal Warsame <abdal.warsame@communities.gov.uk>
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2022-08-23 00:00:00.000000000 Z
16
+ date: 2026-05-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: jwt
@@ -49,8 +49,6 @@ dependencies:
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
51
  version: '3.0'
52
- description:
53
- email:
54
52
  executables: []
55
53
  extensions: []
56
54
  extra_rdoc_files: []
@@ -65,7 +63,6 @@ homepage: https://github.com/communitiesuk/epb-auth-tools
65
63
  licenses:
66
64
  - MIT
67
65
  metadata: {}
68
- post_install_message:
69
66
  rdoc_options: []
70
67
  require_paths:
71
68
  - lib
@@ -73,15 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
70
  requirements:
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
- version: 2.7.0
73
+ version: 3.1.2
77
74
  required_rubygems_version: !ruby/object:Gem::Requirement
78
75
  requirements:
79
76
  - - ">="
80
77
  - !ruby/object:Gem::Version
81
78
  version: '0'
82
79
  requirements: []
83
- rubygems_version: 3.3.7
84
- signing_key:
80
+ rubygems_version: 3.6.9
85
81
  specification_version: 4
86
82
  summary: Tools for authentication and authorisation with JWTs and OAuth
87
83
  test_files: []