rails_kms_credentials 0.3.0 → 0.3.1

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: de88f7dce4457c9f658840f71929a0c6aa0673e30788aae0ea2a5bc3f02a36c2
4
+ data.tar.gz: abea6732234392d3fd6b61d4cb2cc5677021d40243986e2f6a8f090ef213642f
5
5
  SHA512:
6
- metadata.gz: 6957d12ad6e5d28458248dac4ccec8b49a568237d9fcdf954341b486e190d78febdee246ddf7b70371ec7c87d4883afc7edc282a44ed5e301ad7db0c735d9d2e
7
- data.tar.gz: 38bebac72a46d229b0b000c559863d901f2b2be1dd3e0d4ce9de1c3ec73b4de39db976aa6bf4284e65a592c393e1ce90e8619ddcebd43ab440ca465e641d252b
6
+ metadata.gz: d32fd25ff4c82aee6d86d6e46080d88e07127a988b2400ca30146a895a64339e90e3b23ef898ef8bd38c1ceb09b101b9cdeabfa31febe8969403fd1a723fe1ed
7
+ data.tar.gz: fdc5491be4b98e9e25e4a3066b7c541a10cc7961ee85a98c3c9e4a5d8b53f4206c10d6b712dc59f889e0827d164099ce73e1489254be6fab126d2d10404526b7
@@ -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
  }
@@ -5,7 +5,7 @@ module RailsKmsCredentials
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 3
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  end
11
11
 
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.3.1
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-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport