samples/client/petstore/ruby/lib/petstore/configuration.rb
# Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client .
def auth_settings
      {
        'api_key' =>
          {
            type: 'api_key',
            in: 'header',
            key: 'api_key',
            value: api_key_with_prefix('api_key')
          },
        'api_key_query' =>
          {
            type: 'api_key',
            in: 'query',
            key: 'api_key_query',
            value: api_key_with_prefix('api_key_query')
          },
        'http_basic_test' =>
          {
            type: 'basic',
            in: 'header',
            key: 'Authorization',
            value: basic_auth_token
          },
        'petstore_auth' =>
          {
            type: 'oauth2',
            in: 'header',
            key: 'Authorization',
            value: "Bearer #{access_token}"
          },
      }
    end
def auth_settings { 'api_key' => { type : 'api_key' , in : 'header' , key : 'api_key' , value : api_key_with_prefix ( 'api_key' ) } , 'api_key_query' => { type : 'api_key' , in : 'query' , key : 'api_key_query' , value : api_key_with_prefix ( 'api_key_query' ) } , 'http_basic_test' => { type : 'basic' , in : 'header' , key : 'Authorization' , value : basic_auth_token } , 'petstore_auth' => { type : 'oauth2' , in : 'header' , key : 'Authorization' , value : "Bearer #{access_token}" } , } end
Returns Auth Settings hash for api client.
Returns Auth Settings hash for api client .