Method: OpenapiClient::Configuration#auth_settings

Defined in:
lib/openapi_client/configuration.rb

#auth_settingsObject

Returns Auth Settings hash for api client.



216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/openapi_client/configuration.rb', line 216

def auth_settings
  {
    'access-token' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization',
        value: api_key_with_prefix('access-token')
      },
    'basic' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization',
        value: api_key_with_prefix('basic')
      },
  }
end