Skip to content

Commit 619eda7

Browse files
committed
Merge branch 'mb1511-feature/show_required_security_scopes'
2 parents 9df06cd + 2e2bf8a commit 619eda7

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
@@ -395,7 +395,7 @@ export function pathSecurityTemplate(pathSecurity) {
395395
${orSecurityKeys1.map((orSecurityItem1, i) => html`
396396
${i !== 0 ? html`<div style="padding:3px 4px;"> OR </div>` : ''}
397397
<div class="tooltip">
398-
<div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden;"> ${orSecurityItem1.securityTypes} </div>
398+
<div style = "padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden;"><a href="#auth"> ${orSecurityItem1.securityTypes} </a></div>
399399
<div class="tooltip-text" style="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block;">
400400
${orSecurityItem1.securityDefs.length > 1 ? html`<div>Requires <b>all</b> of the following </div>` : ''}
401401
<div style="padding-left: 8px">
@@ -404,7 +404,7 @@ export function pathSecurityTemplate(pathSecurity) {
404404
? html`
405405
<div>
406406
${orSecurityItem1.securityDefs.length > 1 ? html`<b>${j + 1}.</b> &nbsp;` : html`Requires`}
407-
OAuth Token (${andSecurityItem.apiKeyId}) in <b>Authorization header</b>
407+
OAuth Token (${andSecurityItem.apiKeyId}) in <b>Authorization header</b>${orSecurityItem1.pathScopes !== '' ? html`. Required scopes: <ul>${orSecurityItem1.pathScopes.split(', ').map((scope) => html`<li>${scope}</li>`)}</ul>` : ''}
408408
</div>`
409409
: andSecurityItem.type === 'http'
410410
? html`

0 commit comments

Comments
 (0)