Method: OrderCloud::Configuration#auth_settings

Defined in:
lib/order_cloud/configuration.rb

#auth_settingsObject

Returns Auth Settings hash for api client.



233
234
235
236
237
238
239
240
241
242
243
# File 'lib/order_cloud/configuration.rb', line 233

def auth_settings
  {
    'oauth2' =>
      {
        type: 'oauth2',
        in: 'header',
        key: 'Authorization',
        value: "Bearer #{get_access_token.access_token}"
      },
  }
end