Skip to main content

required-oauth2-flow-authorization-url

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

If the flow type is set as implicit or authorizationCode in the OAuth Flows Object, then the OAuth Flow Object must specify the authorization URL to be used for this flow, using the authorizationUrl property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired authorizationUrl property in OAuth Flow Object is missing.
CodeOPENAPI3STANDARDS_V440
TypeValidation
Rule SystemSemantic
Broad CategoryOAuth 2.0 Flows
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation url authorization oauth2 flows type security scheme security

Suggested Fixes

  • Add missing authorizationUrl property in the OAuth Flow Object.
  • Make sure that the authorizationUrl property is not null or empty.
  • Choose a different flow type in the OAuth Flows Object if the current URL is not applicable for your API authentication.

For More Information