Skip to main content

Interface: $Properties

Properties of a SecurityScheme.

Extended by​

Properties​

authorizationUrl?​

optional authorizationUrl?: string | null

The authorization URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/implicit and oauth2/accessCode.


description?​

optional description?: string | null

A short description for security scheme.


extensions?​

optional extensions?: {[k: string]: $Properties; } | null

Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/


flow?​

optional flow?: Flow | null

The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode". Valid for oauth2.


in?​

optional in?: In | null

The location of the API key. Valid values are "query" or "header". Valid for apiKey.


name?​

optional name?: string | null

The name of the header or query parameter to be used. Valid for apiKey.


scopes?​

optional scopes?: $Properties | null

The available scopes for the OAuth2 security scheme. Valid for oauth2.


tokenUrl?​

optional tokenUrl?: string | null

The token URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/password, oauth2/application and oauth2/accessCode.


type?​

optional type?: Type | null

The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".