|
101 | 101 | // ] |
102 | 102 | // ] |
103 | 103 | ], |
104 | | -// See https://spec.openapis.org/oas/v3.1.0#security-scheme-object |
| 104 | + // See https://spec.openapis.org/oas/v3.1.0#security-scheme-object |
105 | 105 | 'security' => [ |
106 | | -// [ |
107 | | -// "api_key" => [] |
108 | | -// ], |
109 | | -// [ |
110 | | -// "auth" => [ |
111 | | -// 'write:users', |
112 | | -// 'read:users' |
113 | | -// ] |
114 | | -// ] |
| 106 | + // [ |
| 107 | + // "api_key" => [] |
| 108 | + // ], |
| 109 | + // [ |
| 110 | + // "auth" => [ |
| 111 | + // 'write:users', |
| 112 | + // 'read:users' |
| 113 | + // ] |
| 114 | + // ] |
115 | 115 | ], |
116 | 116 | // See https://spec.openapis.org/oas/v3.1.0#security-scheme-object |
117 | 117 | 'securitySchemes' => [ |
118 | | -// "api_key" => [ |
119 | | -// "description" => "Authentication via API key", |
120 | | -// "type" => "apiKey", |
121 | | -// "name" => "x-api-key", |
122 | | -// "in" => "header" |
123 | | -// ], |
124 | | -// "http_bearer" => [ |
125 | | -// "description" => "HTTP authentication with bearer token", |
126 | | -// "type" => "http", |
127 | | -// "scheme" => "bearer", |
128 | | -// "bearerFormat" => "JWT" |
129 | | -// ], |
130 | | -// "oauth_authcode" => [ |
131 | | -// "description" => "Authentication via OAuth2 with authorization code flow", |
132 | | -// "type" => "oauth2", |
133 | | -// "flows" => [ |
134 | | -// "authorizationCode" => [ |
135 | | -// "authorizationUrl" => "https://example.com/api/oauth/dialog", |
136 | | -// "tokenUrl" => "https://example.com/api/oauth/token", |
137 | | -// "refreshUrl" => "https://example.com/api/oauth/refresh", |
138 | | -// "scopes" => [ |
139 | | -// "do:something" => "do something" |
140 | | -// ] |
141 | | -// ] |
142 | | -// ] |
143 | | -// ], |
144 | | -// "oauth_clientcredentials" => [ |
145 | | -// "description" => "Authentication via OAuth2 with client credentials flow", |
146 | | -// "type" => "oauth2", |
147 | | -// "flows" => [ |
148 | | -// "clientCredentials" => [ |
149 | | -// "tokenUrl" => "https://example.com/api/oauth/token", |
150 | | -// "refreshUrl" => "https://example.com/api/oauth/refresh", |
151 | | -// "scopes" => [ |
152 | | -// "do:something" => "do something" |
153 | | -// ] |
154 | | -// ] |
155 | | -// ] |
156 | | -// ], |
157 | | -// "oauth_implicit" => [ |
158 | | -// "description" => "Authentication via OAuth2 with implicit flow", |
159 | | -// "type" => "oauth2", |
160 | | -// "flows" => [ |
161 | | -// "implicit" => [ |
162 | | -// "authorizationUrl" => "https://example.com/api/oauth/dialog", |
163 | | -// "refreshUrl" => "https://example.com/api/oauth/refresh", |
164 | | -// "scopes" => [ |
165 | | -// "write:foo" => "modify foo", |
166 | | -// "read:foo" => "read foo" |
167 | | -// ] |
168 | | -// ] |
169 | | -// ] |
170 | | -// ], |
171 | | -// "oauth_password" => [ |
172 | | -// "description" => "Authentication via OAuth2 with resource owner password flow", |
173 | | -// "type" => "oauth2", |
174 | | -// "flows" => [ |
175 | | -// "password" => [ |
176 | | -// "tokenUrl" => "https://example.com/api/oauth/token", |
177 | | -// "refreshUrl" => "https://example.com/api/oauth/refresh", |
178 | | -// "scopes" => [ |
179 | | -// "do:something" => "do something" |
180 | | -// ] |
181 | | -// ] |
182 | | -// ] |
183 | | -// ], |
184 | | -// "open_id" => [ |
185 | | -// "description" => "Authentication via OpenID Connect", |
186 | | -// "type" => "openIdConnect", |
187 | | -// "openIdConnectUrl" => "https://example.com/openid/issuer/location" |
188 | | -// ] |
189 | | - ] |
| 118 | + // "api_key" => [ |
| 119 | + // "description" => "Authentication via API key", |
| 120 | + // "type" => "apiKey", |
| 121 | + // "name" => "x-api-key", |
| 122 | + // "in" => "header" |
| 123 | + // ], |
| 124 | + // "http_bearer" => [ |
| 125 | + // "description" => "HTTP authentication with bearer token", |
| 126 | + // "type" => "http", |
| 127 | + // "scheme" => "bearer", |
| 128 | + // "bearerFormat" => "JWT" |
| 129 | + // ], |
| 130 | + // "oauth_authcode" => [ |
| 131 | + // "description" => "Authentication via OAuth2 with authorization code flow", |
| 132 | + // "type" => "oauth2", |
| 133 | + // "flows" => [ |
| 134 | + // "authorizationCode" => [ |
| 135 | + // "authorizationUrl" => "https://example.com/api/oauth/dialog", |
| 136 | + // "tokenUrl" => "https://example.com/api/oauth/token", |
| 137 | + // "refreshUrl" => "https://example.com/api/oauth/refresh", |
| 138 | + // "scopes" => [ |
| 139 | + // "do:something" => "do something" |
| 140 | + // ] |
| 141 | + // ] |
| 142 | + // ] |
| 143 | + // ], |
| 144 | + // "oauth_clientcredentials" => [ |
| 145 | + // "description" => "Authentication via OAuth2 with client credentials flow", |
| 146 | + // "type" => "oauth2", |
| 147 | + // "flows" => [ |
| 148 | + // "clientCredentials" => [ |
| 149 | + // "tokenUrl" => "https://example.com/api/oauth/token", |
| 150 | + // "refreshUrl" => "https://example.com/api/oauth/refresh", |
| 151 | + // "scopes" => [ |
| 152 | + // "do:something" => "do something" |
| 153 | + // ] |
| 154 | + // ] |
| 155 | + // ] |
| 156 | + // ], |
| 157 | + // "oauth_implicit" => [ |
| 158 | + // "description" => "Authentication via OAuth2 with implicit flow", |
| 159 | + // "type" => "oauth2", |
| 160 | + // "flows" => [ |
| 161 | + // "implicit" => [ |
| 162 | + // "authorizationUrl" => "https://example.com/api/oauth/dialog", |
| 163 | + // "refreshUrl" => "https://example.com/api/oauth/refresh", |
| 164 | + // "scopes" => [ |
| 165 | + // "write:foo" => "modify foo", |
| 166 | + // "read:foo" => "read foo" |
| 167 | + // ] |
| 168 | + // ] |
| 169 | + // ] |
| 170 | + // ], |
| 171 | + // "oauth_password" => [ |
| 172 | + // "description" => "Authentication via OAuth2 with resource owner password flow", |
| 173 | + // "type" => "oauth2", |
| 174 | + // "flows" => [ |
| 175 | + // "password" => [ |
| 176 | + // "tokenUrl" => "https://example.com/api/oauth/token", |
| 177 | + // "refreshUrl" => "https://example.com/api/oauth/refresh", |
| 178 | + // "scopes" => [ |
| 179 | + // "do:something" => "do something" |
| 180 | + // ] |
| 181 | + // ] |
| 182 | + // ] |
| 183 | + // ], |
| 184 | + // "open_id" => [ |
| 185 | + // "description" => "Authentication via OpenID Connect", |
| 186 | + // "type" => "openIdConnect", |
| 187 | + // "openIdConnectUrl" => "https://example.com/openid/issuer/location" |
| 188 | + // ] |
| 189 | + ], |
190 | 190 | ], |
191 | 191 | ]; |
0 commit comments