Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Created June 27, 2020 21:46
Show Gist options
  • Save JordanSchuetz/1ef2f24161355332c2250f349da811b5 to your computer and use it in GitHub Desktop.
Save JordanSchuetz/1ef2f24161355332c2250f349da811b5 to your computer and use it in GitHub Desktop.
#%RAML 1.0 SecurityScheme
type: Basic Authentication
describedBy:
headers:
client_id:
type: string
client_secret:
type: string
responses:
401:
description: Unauthorized or invalid client application credentials
500:
description: Bad response from authorization server, or WSDL SOAP Fault error
@lucas-buyo-s4g
Copy link

lucas-buyo-s4g commented Jul 13, 2020

@JordanSchuetz
using type: Basic Authorization is forcing header like this 👉 authorization: Basic YXNkOmFzZA== and an error on the mocking service.

Using type: Pass Through just send headers as expected.

This example should work with Basic Auth header?

@JordanSchuetz
Copy link
Author

Hi Lucas, this is the default code for the Basic Auth header in API Manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment