Method: Athenian::Configuration#auth_settings
- Defined in:
- lib/athenian/configuration.rb
#auth_settings ⇒ Object
Returns Auth Settings hash for api client.
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/athenian/configuration.rb', line 230 def auth_settings { 'apiKeyAuth' => { type: 'api_key', in: 'header', key: 'X-API-Key', value: api_key_with_prefix('apiKeyAuth') }, 'bearerAuth' => { type: 'bearer', in: 'header', format: 'JWT', key: 'Authorization', value: "Bearer #{access_token_with_refresh}" }, } end |