Method: Passbase::Configuration#auth_settings
- Defined in:
- lib/passbase/configuration.rb
#auth_settings ⇒ Object
Returns Auth Settings hash for api client.
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/passbase/configuration.rb', line 211 def auth_settings { 'IdentityAccessToken' => { type: 'bearer', in: 'header', format: 'JWT', key: 'Authorization', value: "Bearer #{access_token}" }, 'PublishableApiKey' => { type: 'api_key', in: 'header', key: 'X-API-KEY', value: api_key_with_prefix('PublishableApiKey') }, 'SecretApiKey' => { type: 'api_key', in: 'header', key: 'X-API-KEY', value: api_key_with_prefix('SecretApiKey') }, } end |