predefined-endpoint-scopes
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
An endpoint must only use pre-defined scopes from the authentication scope definitions.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Endpoint scope is undefined. |
| Code | APIMATICPRE_V104 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Endpoints |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic scope oauth 2.0 authentication endpoint |
Suggested Fixes
- Make sure all scopes used within an endpoint are already defined in the authentication scopes.
- Make sure that the scope name used in the endpoint matches the name specified for the scope in the authentication section definition.