Skip to main content

default-scope-exists-in-scopes-list

Overview

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

x-default-scopes should only include scopes that are explicitly defined in the OAuth scopes list. This ensures consistency and prevents unauthorized or undefined access levels.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe scope listed in x-default-scopes isn't defined in the OAuth scopes list.
CodeAPIMATICPRE_V075
TypeValidation
Rule SystemSemantic
Broad CategoryAuthentication
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic authentication scopes default scopes

Suggested Fixes

  • Ensure all values specified in x-default-scopes are also present in the OAuth scopes list.
  • Scope names are case-sensitive, so verify exact casing matches.