Skip to main content

unique-authentication-schemes-in-group-auth-option

Overview

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

A group authentication option is one that makes use of multiple authentication schemes to complete the authentication. It must not consist of any duplicate authentication schemes.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageEquivalent authentication scheme has already been applied in the group authentication option.
CodeAPIMATICPRE_L024
TypeLinting
Rule SystemSemantic
Broad CategoryAuthentication
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic group authentication option authentication scheme authentication

Suggested Fixes

  • An authentication scheme entry is considered unique when other entries do not use the same authentication scheme name or (if applicable) consist of unique scope values.
  • Remove duplicate authentication scheme entries from the group authentication option definition to avoid this issue.