Method: UltracartClient::Configuration#auth_settings

Defined in:
lib/ultracart_api/configuration.rb

#auth_settingsObject

Returns Auth Settings hash for api client.



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'lib/ultracart_api/configuration.rb', line 222

def auth_settings
  {
    'ultraCartBrowserApiKey' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'x-ultracart-browser-key',
# The original openapi source had the following.  We've changed that to match the swagger code. - Perry 6/2022
#            value: api_key_with_prefix('ultraCartBrowserApiKey')
        value: api_key_with_prefix('x-ultracart-browser-key')
      },
    'ultraCartOauth' =>
      {
        type: 'oauth2',
        in: 'header',
        key: 'Authorization',
        value: "Bearer #{access_token}"
      },
    'ultraCartSimpleApiKey' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'x-ultracart-simple-key',
# The original openapi source had the following.  We've changed that to match the swagger code. - Perry 6/2022
#            value: api_key_with_prefix('ultraCartSimpleApiKey')
        value: api_key_with_prefix('x-ultracart-simple-key')
      },
  }
end