hephaestus 0.7.1 → 0.7.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37b0e62f3dc4c629a495222466581d493eb8b918bf0b359f3c71512921405c9f
|
4
|
+
data.tar.gz: 0f73a528625033524258f6d679cffbb209c4190baf465268c924efd7c83bcd52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1222c3ba07b47953f5a472e0bcdc32fdd48db56c34bed9aa9d9a9f5c7f6552a6b5604009845cfbd758ee2d776db6a3c8f63a46478e90c0338c99335f1dfa033f
|
7
|
+
data.tar.gz: 6cb716b8f868316d5a186881f094133725302b164b06ddeddcc4f0fbe90a3534a2f58e97a0974a1f04cd22071c300bcf97dfecbe8c4f67d961a57e47a3364d32
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# [v0.7.2] - 16-11-2024
|
2
|
+
## What's Changed
|
3
|
+
* [skip test] Release v0.7.1 by @github-actions in https://github.com/yettoapp/hephaestus/pull/28
|
4
|
+
* Move secrets into Hephaestus by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/29
|
5
|
+
|
6
|
+
|
7
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.1...v0.7.2
|
8
|
+
# [v0.7.1] - 16-11-2024
|
9
|
+
## What's Changed
|
10
|
+
* Run as an engine by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/27
|
11
|
+
|
12
|
+
|
13
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.0...v0.7.1
|
1
14
|
# [v0.7.0] - 15-11-2024
|
2
15
|
## What's Changed
|
3
16
|
* Run as an engine by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/25
|
@@ -4,7 +4,7 @@
|
|
4
4
|
module Hephaestus
|
5
5
|
module Webmocks
|
6
6
|
module YettoWebmock
|
7
|
-
def yetto_auth_header(payload, signing_secret =
|
7
|
+
def yetto_auth_header(payload, signing_secret = Hephaestus::YETTO_SIGNING_SECRET)
|
8
8
|
"sha256=#{OpenSSL::HMAC.hexdigest(Hephaestus::ValidatesFromYetto::SHA256_DIGEST, signing_secret, payload.to_json)}"
|
9
9
|
end
|
10
10
|
|
data/lib/hephaestus/version.rb
CHANGED
@@ -14,7 +14,7 @@ class YettoService
|
|
14
14
|
|
15
15
|
class << self
|
16
16
|
def perform_token_exchange(plug_installation_id)
|
17
|
-
encoded_jwt = Httpsensible::JWT.encode_jwt(YETTO_PLUG_PEM, YETTO_PLUG_ID)
|
17
|
+
encoded_jwt = Httpsensible::JWT.encode_jwt(Hephaestus::YETTO_PLUG_PEM, Hephaestus::YETTO_PLUG_ID)
|
18
18
|
response = yetto_client.with_headers({ "Authorization" => "Bearer #{encoded_jwt}" }).post("#{YETTO_API_VERSION_TLD}/plug/installations/#{plug_installation_id}/access_tokens")
|
19
19
|
body = response.parsed_json_body
|
20
20
|
body["token"]
|