Skip to content

Instantly share code, notes, and snippets.

@shockey
Created March 24, 2018 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shockey/c9a1a2340ba3adabd007d2f83d1edc98 to your computer and use it in GitHub Desktop.
Save shockey/c9a1a2340ba3adabd007d2f83d1edc98 to your computer and use it in GitHub Desktop.
HTTPBin Basic Auth
swagger: "2.0"
host: httpbin.org
basePath: /
paths:
/basic-auth/{user}/{pass}:
get:
security:
- MyBasicAuth: []
parameters:
- name: user
in: path
required: true
- name: pass
in: path
required: true
responses:
200:
description: OK
securityDefinitions:
MyBasicAuth:
type: basic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment