epb-auth-tools 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/http_client.rb +7 -4
  3. metadata +12 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51ff1680c92485230dcdd83f6d87a7346f7cd74e1f4d4df5cc556df606b39e60
4
- data.tar.gz: c1179b6b77dfcf84f70f962c3a82229f1bbdc08dede87c232441d52eee6eed02
3
+ metadata.gz: 7c69a974d1bb9164006db40fd8d0a1b1c2b108ad62d2876fe9b81a1b1cf866a8
4
+ data.tar.gz: a93004e66d366d23e226e7f7991fe577a5ad9ff908750203414741a20ab36207
5
5
  SHA512:
6
- metadata.gz: afeedf14c33ef8d100f06afdcea24fc5825b327c1723044517b46739f255924d48dd51d545f024c409fac97b63647a206c8912a7cccaddae9464414b9457df56
7
- data.tar.gz: 0f65a346cf7aeec3ca38a032e6daa26261283ab7451781231beae77ce966870b96e6661d38182800c8bdc0e2cd469de7528a8118058aeafa77d107711f0e0547
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?
@@ -29,10 +30,12 @@ module Auth
29
30
  @client =
30
31
  auth_client.new client_id,
31
32
  client_secret,
33
+ auth_scheme: :request_body,
32
34
  site: site_url,
33
- token_url: token_url,
34
- authorisation_url: authorisation_url,
35
- raise_errors: false
35
+ token_url:,
36
+ authorisation_url:,
37
+ raise_errors: false,
38
+ connection_opts: faraday_connection_opts
36
39
  end
37
40
 
38
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.9
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: 2021-06-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
@@ -33,16 +33,22 @@ dependencies:
33
33
  name: oauth2
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - "~>"
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '1.4'
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.0'
39
42
  type: :runtime
40
43
  prerelease: false
41
44
  version_requirements: !ruby/object:Gem::Requirement
42
45
  requirements:
43
- - - "~>"
46
+ - - ">="
44
47
  - !ruby/object:Gem::Version
45
48
  version: '1.4'
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '3.0'
46
52
  description:
47
53
  email:
48
54
  executables: []
@@ -67,14 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - ">="
69
75
  - !ruby/object:Gem::Version
70
- version: 2.7.0
76
+ version: 3.1.2
71
77
  required_rubygems_version: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - ">="
74
80
  - !ruby/object:Gem::Version
75
81
  version: '0'
76
82
  requirements: []
77
- rubygems_version: 3.1.6
83
+ rubygems_version: 3.3.7
78
84
  signing_key:
79
85
  specification_version: 4
80
86
  summary: Tools for authentication and authorisation with JWTs and OAuth