vestauth 0.4.0 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c89e42127df034e314cc6b11c576f76165c3ba8f99b0b6540eb9aee92e77541
4
- data.tar.gz: 74d41456361216beb075c498b1cb6f1f8f1cf381628d64303ab5e8af2daf76cd
3
+ metadata.gz: 343672cd8953488da8889f880189fe99b7f5983ae8f2b9b331c044dff60a2f70
4
+ data.tar.gz: 5f7421f16a150471441dc1d213b15542e35fe0ed1b33ea37efb1e63d986a6c33
5
5
  SHA512:
6
- metadata.gz: '098e54f2851e34efa9b82d5a5d0afc0f5d531c27f23cb41384764f1a10f6238e232ca14971e98df38dea2ba48f41db2f5946b5c3b8900ab0e8c36ecf322851f2'
7
- data.tar.gz: 44a27df536ced66a434eaf705caa617cb545f0883f979fdf8574b7b23544a109870873848ee3c6e802931a6b744d6af325cacaa4bbbf87ea243f0896e37a8dd9
6
+ metadata.gz: f6fd0367208b453f5fc3a526393988fe5d569e1c9218423845810c179a0acbee5f2b7234a98adcbefb681c4d64dac59d01f264be26fb1baa6ef0f532e5ef56a6
7
+ data.tar.gz: 23877529998688fba566ff958b20951093a533dc9c597284981dbc277b178877860c6819dcf2de643239a8906821ca2ad9f31aaa2ca6a338651fe2ba18d1461e
@@ -4,11 +4,11 @@ module Vestauth
4
4
  module Agent
5
5
  module_function
6
6
 
7
- def headers(http_method:, uri:, private_key:, id:)
7
+ def headers(http_method:, uri:, private_jwk:, id:)
8
8
  vestauth_binary.agent_headers(
9
9
  http_method: http_method,
10
10
  uri: uri,
11
- private_key: private_key,
11
+ private_jwk: private_jwk,
12
12
  id: id
13
13
  )
14
14
  end
@@ -27,8 +27,8 @@ module Vestauth
27
27
  run_json_command(command)
28
28
  end
29
29
 
30
- def agent_headers(http_method:, uri:, private_key:, id:)
31
- private_jwk = serialize_json_arg(private_key, name: "private_key")
30
+ def agent_headers(http_method:, uri:, private_jwk:, id:)
31
+ private_jwk = serialize_json_arg(private_jwk, name: "private_jwk")
32
32
 
33
33
  command = [
34
34
  @executable,
@@ -45,8 +45,8 @@ module Vestauth
45
45
  run_json_command(command)
46
46
  end
47
47
 
48
- def primitives_verify(http_method:, uri:, signature_header:, signature_input_header:, public_key:)
49
- public_jwk = serialize_json_arg(public_key, name: "public_key")
48
+ def primitives_verify(http_method:, uri:, signature_header:, signature_input_header:, public_jwk:)
49
+ public_jwk = serialize_json_arg(public_jwk, name: "public_jwk")
50
50
 
51
51
  command = [
52
52
  @executable,
@@ -4,13 +4,13 @@ module Vestauth
4
4
  module Primitives
5
5
  module_function
6
6
 
7
- def verify(http_method:, uri:, signature_header:, signature_input_header:, public_key:)
7
+ def verify(http_method:, uri:, signature_header:, signature_input_header:, public_jwk:)
8
8
  vestauth_binary.primitives_verify(
9
9
  http_method: http_method,
10
10
  uri: uri,
11
11
  signature_header: signature_header,
12
12
  signature_input_header: signature_input_header,
13
- public_key: public_key
13
+ public_jwk: public_jwk
14
14
  )
15
15
  end
16
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vestauth
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vestauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - motdotla