Lines 400-440javascript
400 refreshUrl: { type: 'string' },
401 scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
402 tokenUrl: { type: 'string' },
404 required: ['tokenUrl', 'scopes'],
405 description: 'Configuration for the OAuth Client Credentials flow.',
407const AuthorizationCode = {
409 refreshUrl: { type: 'string' },
410 authorizationUrl: { type: 'string' },
411 scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
412 tokenUrl: { type: 'string' },
414 required: ['authorizationUrl', 'tokenUrl', 'scopes'],
415 description: 'Configuration for the OAuth Authorization Code flow.',
417export const SecuritySchemeFlows = {
419 implicit: 'ImplicitFlow',
420 password: 'PasswordFlow',
421 clientCredentials: 'ClientCredentials',
422 authorizationCode: 'AuthorizationCode',
425const SecurityScheme = {
432 'symmetricEncryption',
433 'asymmetricEncryption',