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 +4 -4
- data/lib/vestauth/agent.rb +2 -2
- data/lib/vestauth/binary.rb +4 -4
- data/lib/vestauth/primitives.rb +2 -2
- data/lib/vestauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 343672cd8953488da8889f880189fe99b7f5983ae8f2b9b331c044dff60a2f70
|
|
4
|
+
data.tar.gz: 5f7421f16a150471441dc1d213b15542e35fe0ed1b33ea37efb1e63d986a6c33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6fd0367208b453f5fc3a526393988fe5d569e1c9218423845810c179a0acbee5f2b7234a98adcbefb681c4d64dac59d01f264be26fb1baa6ef0f532e5ef56a6
|
|
7
|
+
data.tar.gz: 23877529998688fba566ff958b20951093a533dc9c597284981dbc277b178877860c6819dcf2de643239a8906821ca2ad9f31aaa2ca6a338651fe2ba18d1461e
|
data/lib/vestauth/agent.rb
CHANGED
|
@@ -4,11 +4,11 @@ module Vestauth
|
|
|
4
4
|
module Agent
|
|
5
5
|
module_function
|
|
6
6
|
|
|
7
|
-
def headers(http_method:, uri:,
|
|
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
|
-
|
|
11
|
+
private_jwk: private_jwk,
|
|
12
12
|
id: id
|
|
13
13
|
)
|
|
14
14
|
end
|
data/lib/vestauth/binary.rb
CHANGED
|
@@ -27,8 +27,8 @@ module Vestauth
|
|
|
27
27
|
run_json_command(command)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
def agent_headers(http_method:, uri:,
|
|
31
|
-
private_jwk = serialize_json_arg(
|
|
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:,
|
|
49
|
-
public_jwk = serialize_json_arg(
|
|
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,
|
data/lib/vestauth/primitives.rb
CHANGED
|
@@ -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:,
|
|
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
|
-
|
|
13
|
+
public_jwk: public_jwk
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
data/lib/vestauth/version.rb
CHANGED