[I] OpenAPI2OAuthSecurityBase
Allows the definition of a security scheme that can be used by the operations. Supported schemes are basic authentication, an API key (either as a header or as a query parameter) and OAuth2’s common flows (implicit, password, application and access code).
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-scheme-object
Extends
Section titled “Extends”Extended by
Section titled “Extended by”OpenAPI2OAuth2ImplicitSecuritySchemeOpenAPI2OAuth2PasswordSecuritySchemeOpenAPI2OAuth2ApplicationSecuritySchemeOpenAPI2OAuth2AccessCodeSecurityScheme
Indexable
Section titled “Indexable”[key: `x-${string}`]: unknownProperties
Section titled “Properties”| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
description? | string | A short description for security scheme. | - | OpenAPI2SecuritySchemeBase.description |
flow | OpenAPI2OAuth2FlowType | The flow used by the OAuth2 security scheme | - | - |
scopes | Record<string, string> | The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. | - | - |
type | "oauth2" | The type of the security scheme. Valid values are “basic”, “apiKey” or “oauth2”. | OpenAPI2SecuritySchemeBase.type | - |