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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Authentication scheme referenced is undefined. |
Code | APIMATICPRE_V073 |
Type | Validation |
Rule System | Semantic |
Broad Category | Authentication |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary 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.