|
|
|
@ -4,16 +4,16 @@ module HttpAuthenticationHelper
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def authentication_headers(value)
|
|
|
|
|
{ authenticated_header => value }
|
|
|
|
|
{ "#{authenticated_header}" => value }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def stub_http_header_authentication_configuration(field: 'email', autocreation: false, enabled: true)
|
|
|
|
|
Cartodb.stubs(:get_config)
|
|
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
header: authenticated_header,
|
|
|
|
|
field: field,
|
|
|
|
|
autocreation: autocreation
|
|
|
|
|
'header' => authenticated_header,
|
|
|
|
|
'field' => field,
|
|
|
|
|
'autocreation' => autocreation
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config.each do |f, v|
|
|
|
|
|