Allow different manager auth settings per tenant
This commit is contained in:
@@ -57,7 +57,7 @@ staging:
|
|||||||
# my_tenant_subdomain:
|
# my_tenant_subdomain:
|
||||||
# secret_key: my_secret_value
|
# secret_key: my_secret_value
|
||||||
#
|
#
|
||||||
# Currently you can overwrite SMTP settings and SMS settings.
|
# Currently you can overwrite SMTP, SMS and manager settings.
|
||||||
<<: *maps
|
<<: *maps
|
||||||
<<: *apis
|
<<: *apis
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ preproduction:
|
|||||||
# my_tenant_subdomain:
|
# my_tenant_subdomain:
|
||||||
# secret_key: my_secret_value
|
# secret_key: my_secret_value
|
||||||
#
|
#
|
||||||
# Currently you can overwrite SMTP settings and SMS settings.
|
# Currently you can overwrite SMTP, SMS and manager settings.
|
||||||
twitter_key: ""
|
twitter_key: ""
|
||||||
twitter_secret: ""
|
twitter_secret: ""
|
||||||
facebook_key: ""
|
facebook_key: ""
|
||||||
@@ -132,7 +132,7 @@ production:
|
|||||||
# my_tenant_subdomain:
|
# my_tenant_subdomain:
|
||||||
# secret_key: my_secret_value
|
# secret_key: my_secret_value
|
||||||
#
|
#
|
||||||
# Currently you can overwrite SMTP settings and SMS settings.
|
# Currently you can overwrite SMTP, SMS and manager settings.
|
||||||
twitter_key: ""
|
twitter_key: ""
|
||||||
twitter_secret: ""
|
twitter_secret: ""
|
||||||
facebook_key: ""
|
facebook_key: ""
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class ManagerAuthenticator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def client
|
def client
|
||||||
@client ||= Savon.client(wsdl: Rails.application.secrets.managers_url)
|
@client ||= Savon.client(wsdl: Tenant.current_secrets.managers_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
def parser
|
def parser
|
||||||
@@ -39,6 +39,6 @@ class ManagerAuthenticator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def application_key
|
def application_key
|
||||||
Rails.application.secrets.managers_application_key.to_s
|
Tenant.current_secrets.managers_application_key.to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user