This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
security.yml
108 lines (91 loc) · 2.71 KB
/
security.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
asyncapi: 2.0.0
info:
title: Security
version: 1.0.0
servers:
test:
url: test
protocol: test
security:
- "User/Password": []
- "API Key": []
- "X.509 Certificate": []
- "Symmetric Encryption": []
- "Asymmetric Encryption": []
- "HTTP API Key": []
- "HTTP": []
- "HTTP (Bearer)": []
- "OAuth 2.0":
- read:user
- write:user
- "OpenID":
- read:user
- write:user
channels:
dummy:
description: dummy
components:
securitySchemes:
"User/Password":
type: userPassword
description: Provide your user and password.
"API Key":
type: apiKey
description: Provide your API key as the user and leave the password empty.
in: user
"X.509 Certificate":
type: X509
description: Provide your X.509 Certificate.
"Symmetric Encryption":
type: symmetricEncryption
description: End-to-end symmetric encryption.
"Asymmetric Encryption":
type: asymmetricEncryption
description: End-to-end asymmetric encryption.
"HTTP API Key":
type: httpApiKey
description: Provide your API key in the HTTP header.
name: x-api-key
in: header
"HTTP":
type: http
description: Provide your API key in the Authorization HTTP header.
scheme: basic
"HTTP (Bearer)":
type: http
description: Provide your JWT token in the Authorization HTTP header.
scheme: bearer
bearerFormat: JWT
"OAuth 2.0":
type: oauth2
description: OAuth 2.0.
flows:
implicit:
authorizationUrl: https://auth.example.com/oauth
refreshUrl: https://auth.example.com/oauth/refresh
scopes:
read:job: Read users.
write:job: Write users.
password:
tokenUrl: https://auth.example.com/oauth/token
refreshUrl: https://auth.example.com/oauth/refresh
scopes:
read:user: Read users.
write:user: Write users.
clientCredentials:
tokenUrl: https://auth.example.com/oauth/token
refreshUrl: https://auth.example.com/oauth/refresh
scopes:
read:user: Read users.
write:user: Write users.
authorizationCode:
authorizationUrl: https://auth.example.com/oauth
tokenUrl: https://auth.example.com/oauth/token
refreshUrl: https://auth.example.com/oauth/refresh
scopes:
read:user: Read users.
write:user: Write users.
"OpenID":
type: openIdConnect
description: The OpenId Connect URL provides OAuth2 configuration values.
openIdConnectUrl: https://oauth.example.com/.well-known