Allow different manager auth settings per tenant

This commit is contained in:
Javi Martín
2022-09-29 20:31:55 +02:00
parent eb2cf00ddf
commit 338f4929ca
2 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class ManagerAuthenticator
end
def client
@client ||= Savon.client(wsdl: Rails.application.secrets.managers_url)
@client ||= Savon.client(wsdl: Tenant.current_secrets.managers_url)
end
def parser
@@ -39,6 +39,6 @@ class ManagerAuthenticator
end
def application_key
Rails.application.secrets.managers_application_key.to_s
Tenant.current_secrets.managers_application_key.to_s
end
end