From ea22f9a80cb0be36204dca096bc01c1c07cb75b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Tue, 25 Aug 2020 12:20:43 +0200 Subject: [PATCH] DX-1096: Move :domain_auth into a :typheous options key --- .docker/entrypoint/lib/commands/verifier.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.docker/entrypoint/lib/commands/verifier.rb b/.docker/entrypoint/lib/commands/verifier.rb index bad2fb612..0fbe239e4 100644 --- a/.docker/entrypoint/lib/commands/verifier.rb +++ b/.docker/entrypoint/lib/commands/verifier.rb @@ -67,17 +67,19 @@ def default_options } token = @context.auth_token - opts[:domain_auth] = domain_auth_options(token) unless token.nil? + opts[:typhoeus] = typhoeus_configuration(token) unless token.nil? opts end - def domain_auth_options(auth_token) + def typhoeus_configuration(auth_token) { - 'github.com' => { - type: :header, - template: 'Bearer %token%', - values: { - token: auth_token + domain_auth: { + 'github.com' => { + type: :header, + template: 'Bearer %token%', + values: { + token: auth_token + } } } }