Skip to main content

two-or-more-authentication-schemes-in-group-auth-option

Overview

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

A group authentication option is expected to make use of multiple authentication schemes to complete the authentication. Therefore, it must consist of at least two or more authentication schemes. If only a single authentication scheme is present, it is recommended to change the authentication option type to single.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageGroup authentication option contains a single authentication scheme only.
CodeAPIMATICPRE_L025
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

  • Add two or more authentication schemes in the authentication option for it to be treated as a valid group type authentication option.
  • Change the type of authentication option from 'Group' to 'Single' if it is expected to consist of only a single authentication scheme.