Skip to content

Commit

Permalink
DX-1096: Move :domain_auth into a :typheous options key
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjornu committed Aug 25, 2020
1 parent 3faf709 commit ea22f9a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .docker/entrypoint/lib/commands/verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down

0 comments on commit ea22f9a

Please sign in to comment.