<a name="/security/{{htmlId name}}"></a>
<h3>{{type}}</h3>

{{{md description}}}

<section class="summary">
	{{#if isApiKey}}
		<table>
			<tbody>
				{{#ifeq in 'header'}}
					<tr>
						<td class="name">Header</td>
						<td class="type">{{paramName}}</td>
					</tr>
				{{else ifeq in 'query'}}
					<tr>
						<td class="name">Query Parameter</td>
						<td class="type">{{paramName}}</td>
					</tr>
				{{else ifeq in 'cookie'}}
					<tr>
						<td class="name">Cookie Name</td>
						<td class="type">{{paramName}}</td>
					</tr>
				{{else}}
					<tr>
						<td class="name">{{in}} Name</td>
						<td class="type">{{paramName}}</td>
					</tr>
				{{/ifeq}}
			</tbody>
		</table>
	{{else if isOAuth}}
		{{#each flows}}
			<h4>{{sentenceCase type}} flow</h4>
			<table class="auth-flows">
				<tbody>
					{{#if authorizationUrl}}
					<tr>
						<td class="name">Authorization URL</td>
						<td class="type">{{authorizationUrl}}</td>
					</tr>
					{{/if}}
					{{#if tokenUrl}}
					<tr>
						<td class="name">Token URL</td>
						<td class="type">{{tokenUrl}}</td>
					</tr>
					{{/if}}
					{{#if refreshUrl}}
					<tr>
						<td class="name">Refresh URL</td>
						<td class="type">{{refreshUrl}}</td>
					</tr>
					{{/if}}
				</tbody>
			</table>

			{{#if scopes}}
			<h5>Scopes</h5>
			<table class="auth-scopes">
				<tbody>
					{{#each scopes}}
					<tr>
						<td class="type">{{name}}</td>
						<td>
							{{description}}
						</td>
					</tr>
					{{/each}}
				</tbody>
			</table>
			{{/if}}
		{{/each}}
	{{else if isOpenIdConnect}}
		<table>
			<tbody>
				<tr>
					<td class="name">OpenId Connect URL</td>
					<td class="type">{{openIdConnectUrl}}</td>
				</tr>
			</tbody>
		</table>
	{{/if}}
</section>
