Skip to content

Commit 8ccd69b

Browse files
committed
Fixes #200 include apiKeyId in oAuth display for user to relate when multiple security scheme exist
1 parent 88cfcda commit 8ccd69b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/security-scheme-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export default function securitySchemeTemplate() {
282282
<tr>
283283
<td style="max-width:500px; overflow-wrap: break-word;">
284284
<div style="min-height:24px">
285-
<span style="font-weight:bold">${v.typeDisplay} </span>
285+
<span style="font-weight:bold">${v.typeDisplay} ${v.type === 'oauth2' ? `(${v.apiKeyId})` : ''}</span>
286286
${v.finalKeyValue
287287
? html`
288288
<span class='blue-text'> ${v.finalKeyValue ? 'Key Applied' : ''} </span>
@@ -385,7 +385,7 @@ export function pathSecurityTemplate(pathSecurity) {
385385
? html`
386386
<div>
387387
${andSecurityItem.securityDefs.length > 1 ? html`<b>${i + 1}.</b> &nbsp;` : html`Requires`}
388-
OAuth Access Token in <b>Authorization header</b> with <b>Scopes:</b> ${andSecurityItem.pathScopes}
388+
OAuth Token (${orSecurityItem.apiKeyId}) in <b>Authorization header</b>
389389
</div>`
390390
: orSecurityItem.type === 'http'
391391
? html`

0 commit comments

Comments
 (0)