Method: Bitpesa::Configuration#auth_settings

Defined in:
lib/bitpesa-sdk/configuration.rb

#auth_settingsObject

Returns Auth Settings hash for api client.



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# File 'lib/bitpesa-sdk/configuration.rb', line 187

def auth_settings
  {
    'AuthorizationKey' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization-Key',
        value: api_key_with_prefix('Authorization-Key')
      },
    'AuthorizationNonce' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization-Nonce',
        value: api_key_with_prefix('Authorization-Nonce')
      },
    'AuthorizationSecret' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization-Secret',
        value: api_key_with_prefix('Authorization-Secret')
      },
    'AuthorizationSignature' =>
      {
        type: 'api_key',
        in: 'header',
        key: 'Authorization-Signature',
        value: api_key_with_prefix('Authorization-Signature')
      },
  }
end