diff --git a/src/templates/security-scheme-template.js b/src/templates/security-scheme-template.js index d7652f5c..2583e1eb 100644 --- a/src/templates/security-scheme-template.js +++ b/src/templates/security-scheme-template.js @@ -583,7 +583,10 @@ export function pathSecurityTemplate(pathSecurity) { ? html`
${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`} - ${andSecurityItem.scheme === 'basic' ? 'Base 64 encoded username:password' : 'Bearer Token'} in Authorization header + ${andSecurityItem.scheme === 'basic' + ? 'Base 64 encoded username:password' + : `Bearer Token' ${andSecurityItem.name} ` + } in Authorization header ${scopeHtml}
` : html` diff --git a/src/utils/spec-parser.js b/src/utils/spec-parser.js index 8127cd8a..9c3c6d36 100644 --- a/src/utils/spec-parser.js +++ b/src/utils/spec-parser.js @@ -116,7 +116,7 @@ export default async function ProcessSpec( // Updated Security Type Display Text based on Type securitySchemes.forEach((v) => { if (v.type === 'http') { - v.typeDisplay = v.scheme === 'basic' ? 'HTTP Basic' : 'HTTP Bearer'; + v.typeDisplay = v.scheme === 'basic' ? 'HTTP Basic' : `HTTP Bearer ${v.name}`; } else if (v.type === 'apiKey') { v.typeDisplay = `API Key (${v.name})`; } else if (v.type === 'oauth2') {