You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/api-def/openapi-pages/auth.mdx
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,24 +236,6 @@ client = new Client({
236
236
await client.users.list();
237
237
```
238
238
239
-
## Multiple security schemes
240
-
241
-
If you would like to define multiple security schemes, simply
242
-
list them under `components.securitySchemes`. For example, if you wanted to support
243
-
`basic` and `apiKey` security schemes, see the example below:
244
-
245
-
```yaml title="openapi.yml" {3,6}
246
-
components:
247
-
securitySchemes:
248
-
BearerAuth:
249
-
type: http
250
-
scheme: bearer
251
-
ApiKey:
252
-
type: apiKey
253
-
in: header
254
-
name: X_API_KEY
255
-
```
256
-
257
239
## Override security scheme
258
240
259
241
You can use `generators.yml` to define custom authentication schemes that will take precedence when generating SDKs. This is also how OAuth authentication is configured for OpenAPI specs.
0 commit comments