-
Notifications
You must be signed in to change notification settings - Fork 0
/
opendeps.yaml
73 lines (64 loc) · 2.06 KB
/
opendeps.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
opendeps: "0.1.0"
info:
title: Sample Petstore app
description: Shows various ways to authenticate to an availability endpoint.
contact:
name: Pete Cornish
url: https://github.com/opendeps
email: opendeps@example.com
version: "1.0.0"
dependencies:
pet_name_service_basic:
summary: The pet naming service protected by Basic Auth.
description: The service generates pet names.
spec: ./pet_name_service_openapi.yaml
version: "2.0.0"
availability:
url: https://example.com/pet-names
security: myBasicAuth
pet_name_service_bearer:
summary: The pet naming service protected by bearer token in the HTTP Authorization request header.
description: The service generates pet names.
spec: ./pet_name_service_openapi.yaml
version: "2.0.0"
availability:
url: https://example.com/pet-names
security: myBearerToken
pet_name_service_plain:
summary: The pet naming service protected by a plain token in the HTTP Authorization request header.
description: The service generates pet names.
spec: ./pet_name_service_openapi.yaml
version: "2.0.0"
availability:
url: https://example.com/pet-names
security: myPlainToken
pet_name_service_header:
summary: The pet naming service protected by custom header authentication.
description: The service generates pet names.
spec: ./pet_name_service_openapi.yaml
version: "2.0.0"
availability:
url: https://example.com/pet-names
security: myHeaderAuth
components:
securityConfigs:
# Sends HTTP request header
# Authorization: Basic base64(<username:password>)
myBasicAuth:
type: authHeader
scheme: basic
# Sends HTTP request header
# Authorization: Bearer <secret>
myBearerToken:
type: authHeader
scheme: bearer
# Sends HTTP request header
# Authorization: <secret>
myPlainToken:
type: authHeader
scheme: none
# Sends HTTP request header
# X-Custom-Auth: <secret>
myHeaderAuth:
type: httpHeader
headers: [ "X-Custom-Auth" ]