predefined-oauth-2-server
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
The authorization server or access token server referenced inside the OAuth 2.0 authentication definition must be pre-defined in the server configuration of the API.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | OAuth 2.0 authentication definition references an undefined server. |
| Code | APIMATICPRE_V067 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Authentication |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic server oauth 2.0 authentication server configuration api |
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.