Skip to main content

pre-defined-authentication-scheme

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

When an authentication scheme is applied, the authentication scheme name must be non-null, non-empty and correspond with the name of a globally defined authentication scheme.

PropertyValue
EnabledYes
Maximum SeverityError
MessageAuthentication scheme referenced is undefined.
CodeAPIMATICPRE_V073
TypeValidation
Rule SystemSemantic
Broad CategoryAuthentication
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic authentication scheme name authentication scheme applied authentication authentication

Suggested Fixes

  • Make sure that the name specified for the authentication scheme corresponds exactly with the name of a globally defined authentication scheme.
  • Make sure that one or more authentication schemes are defined globally and contains an entry for the authentication scheme name you used.
  • Names are compared in a case-sensitive manner.
  • Make sure that the authentication scheme name is not null or empty.