You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a security schema of type openIdConnect, scopes are being checked for being defined in the flows, but per the OpenAPI Specification, when using openIdConnect, flows is not a valid property (it should only be used with OAuth2). Therefore, the check for isScopeDefined is invalid for openIdConnect.
To Reproduce
Define an operation and apply a security schema of type openIdConnect.
Include a valid scope from the well-known OIDC configuration as part of the security schema reference in the operation.
Observe that oas3-operation-security-defined triggered, listing "the-scope-you-included" must be listed among scopes..
Expected behavior
Either OIDC provided scopes should be skipped as part of the isScopeDefined function when the security schema is of type openIdConnect. Additionally, checking for isScopeDefined could be considered a separate rule from oas3-operation-security-defined so it can be selectively ignored (suggested name: oas3-operationsecurity-scopes-defined).
Describe the bug
When using a security schema of type
openIdConnect
, scopes are being checked for being defined in the flows, but per the OpenAPI Specification, when usingopenIdConnect
,flows
is not a valid property (it should only be used with OAuth2). Therefore, the check forisScopeDefined
is invalid foropenIdConnect
.To Reproduce
openIdConnect
.oas3-operation-security-defined
triggered, listing"the-scope-you-included" must be listed among scopes.
.Expected behavior
Either OIDC provided scopes should be skipped as part of the
isScopeDefined
function when the security schema is of typeopenIdConnect
. Additionally, checking forisScopeDefined
could be considered a separate rule fromoas3-operation-security-defined
so it can be selectively ignored (suggested name:oas3-operationsecurity-scopes-defined
).Environment:
Additional context
OpenAPI Specification - Security Schema Object,
Reference code in the ruleset
The text was updated successfully, but these errors were encountered: