openapi: 3.0.0 info: title: OAuth2 with multiple flows version: 1.0.0 components: securitySchemes: myOauth2: type: oauth2 flows: implicit: authorizationUrl: https://example.com/api/oauth/dialog scopes: write:pets: modify pets in your account read:pets: read your pets authorizationCode: authorizationUrl: https://example.com/api/oauth/dialog tokenUrl: https://example.com/api/oauth/token refreshUrl: https://example.com/api/oauth/refresh scopes: write:pets: modify pets in your account read:pets: read your pets myOpenIdConnect: type: openIdConnect openIdConnectUrl: https://example.com/.well-known/openid-connect security: - myOauth2: [] - myOpenIdConnect: []