Skip to main content

pre-defined-oauth2-token-server-in-server-configuration

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The access token server referenced inside the OAuth 2.0 authentication definition must be pre-defined in the server configuration of the API.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe access token server is not defined in API server configuration object.
CodeOPENAPI3APIMATIC_L911
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI OAuth 2.0 Flows
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server oauth2 token server server configuration security scheme

Suggested Fixes

  • Make sure the server you reference within OAuth 2.0 authentication definition is defined with the same name under the server configuration of the API.
  • Make sure the server name is not misspelled.

For More Information