components:
securitySchemes:
app2AppOauth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://learn.openapis.org/oauth/2.0/token
# Only reading the board allow with delegated access
# <---- scopes: should be here
board:read: Read the board
user2AppOauth:
authorizationCode:
authorizationUrl: https://learn.openapis.org/oauth/2.0/auth
tokenUrl: https://learn.openapis.org/oauth/2.0/token
scopes:
# Reads and writes permitted via authorization code flow
board:read: Read the board
board:write: Write to the board
In
components.securitySchemestheapp2AppOauth:clientCredentialsflow doesn’t include a scopes object.https://learn.openapis.org/specification/security.html#oauth-20