rails_kms_credentials 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0273094dabd151a67eb56db4f3211b88264a2cce57ca9ab1877cffc7b4ad691
4
- data.tar.gz: 151cdc9835b37d4d6207af37cec2ac926ec31165790e91d1d8ad8a4a93bff334
3
+ metadata.gz: '0213877dcffaf1fdd9c7fd105e3672896af45bac98016950253e51cc4506981e'
4
+ data.tar.gz: 33db35c6bba9e87d1225d2bc9c69e6238079ff7e5c14aee0bbe78c08f382b4e7
5
5
  SHA512:
6
- metadata.gz: 6957d12ad6e5d28458248dac4ccec8b49a568237d9fcdf954341b486e190d78febdee246ddf7b70371ec7c87d4883afc7edc282a44ed5e301ad7db0c735d9d2e
7
- data.tar.gz: 38bebac72a46d229b0b000c559863d901f2b2be1dd3e0d4ce9de1c3ec73b4de39db976aa6bf4284e65a592c393e1ce90e8619ddcebd43ab440ca465e641d252b
6
+ metadata.gz: 9d485d0f78de0d8c1f168ea1f3009a429e3bb0e7bac71ead622bf227f05509861c7525208532dd26c7a2330e48e062f06b751b1cfeba7e04d1e01c14e09c4a83
7
+ data.tar.gz: ec94f342392a7d003b94cdd5e29c0409a4c6d6c9158a0fdc5b3cd459b779823f8fec577c29c7f51c6a54d13a0366ca54e4e7596a0093c5fb2ae99513272526ad
@@ -46,18 +46,19 @@ module RailsKmsCredentials
46
46
 
47
47
  private
48
48
 
49
- def client_secret
50
- @client_secret ||= File.read(@federated_token_file)
49
+ def client_assertion
50
+ @client_assertion ||= File.read(@federated_token_file)
51
51
  end
52
52
 
53
53
  def access_token
54
54
  return @access_token if instance_variable_defined?(:@access_token)
55
55
  @_access_token_response = HTTParty.post(
56
- "#{authority_host}/#{tenant_id}/oauth2/v2.0/token",
56
+ "#{authority_host}#{tenant_id}/oauth2/v2.0/token",
57
57
  {
58
58
  body: {
59
+ client_assertion: client_assertion,
60
+ client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
59
61
  client_id: client_id,
60
- client_secret: client_secret,
61
62
  scope: 'https://vault.azure.net/.default',
62
63
  grant_type: 'client_credentials',
63
64
  }
@@ -4,7 +4,7 @@ module RailsKmsCredentials
4
4
 
5
5
  module Version
6
6
  MAJOR = 0
7
- MINOR = 3
7
+ MINOR = 4
8
8
  PATCH = 0
9
9
 
10
10
  end
@@ -3,6 +3,7 @@
3
3
  # Container Module
4
4
  module RailsKmsCredentials; end
5
5
 
6
+ require 'httparty'
6
7
  require 'active_support/concern'
7
8
 
8
9
  require 'rails_kms_credentials/application'
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
27
27
 
28
28
  s.required_ruby_version = '>= 2.7.0'
29
29
 
30
- s.add_dependency('activesupport', '>= 5.0.0')
31
- s.add_dependency('railties', '>= 5.0.0')
30
+ s.add_dependency('activesupport', '>= 5.0.0', '< 8.0.0')
31
+ s.add_dependency('railties', '>= 5.0.0', '< 8.0.0')
32
32
 
33
33
  s.add_dependency('httparty', '~> 0.21.0')
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_kms_credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Yelverton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-10 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 5.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 8.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 5.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 8.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: railties
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +37,9 @@ dependencies:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: 5.0.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: 8.0.0
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +47,9 @@ dependencies:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: 5.0.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: 8.0.0
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: httparty
43
55
  requirement: !ruby/object:Gem::Requirement