lib/phrase/configuration.rb in phrase-2.18.0 vs lib/phrase/configuration.rb in phrase-2.19.0
- old
+ new
@@ -179,22 +179,22 @@
end
# Returns Auth Settings hash for api client.
def auth_settings
{
- 'Basic' =>
+ 'Token' =>
{
- type: 'basic',
+ type: 'api_key',
in: 'header',
key: 'Authorization',
- value: basic_auth_token
+ value: api_key_with_prefix('Authorization')
},
- 'Token' =>
+ 'Basic' =>
{
- type: 'api_key',
+ type: 'basic',
in: 'header',
key: 'Authorization',
- value: api_key_with_prefix('Authorization')
+ value: basic_auth_token
},
}
end
# Returns an array of Server setting