{{ define "requestMultiKey" }} {{ template "header" .}} {{$catalogue := .Catalogue}} {{$catalogues := .Catalogues}} {{$key := .Key}} {{$modifyKey := false}} {{$addKey := true}} {{if .Key}}{{$modifyKey = true}}{{$addKey = false}}{{end}}
{{ if .Error }}
{{.Error}}
{{ end }} {{ if not .DenyRequest }} {{ end }}
{{ if not .DenyRequest }}

Selected APIs

{{if .Key}}

List of APIs the key access

{{else}}

List of APIs the key will be generated for

{{end}}
No selected APIs
    {{range $index, $cat := $catalogues}}
  1. {{$cat.Name}} {{$cat.AuthType}}
  2. {{end}}

Available APIs to connect

List of APIs availble for key request. Once an API is selected the entire list is filtered by the selected APIs authentication type.

No APIs available for selection
    {{$authType := $catalogue.AuthType}} {{ range $index, $apiDetail := .APIS}} {{ if $apiDetail.Show }} {{ if ne $apiDetail.AuthType "oauth"}} {{ $match := false }} {{ range $cid, $cat := $catalogues }} {{if eq $apiDetail.PolicyID $cat.PolicyID}} {{ $match = true }} {{end}} {{end}} {{ if and (ne $match true) (or $addKey (eq $apiDetail.AuthType $authType)) }}
  1. {{$apiDetail.Name}} {{$apiDetail.AuthType}}
  2. {{end}} {{end}} {{end}} {{end}}
{{if gt (len .PortalConfig.KeyRequestFields) 0 }}

Key request form

{{ range $fieldname := .PortalConfig.KeyRequestFields }}
{{ end }} {{ end }} {{ if $catalogue }} {{ end }}
  • {{if $addKey}} {{else}} {{end}}
{{ end }}
{{ template "navigation" . }} {{ template "footer" .}} {{ template "scripts" .}} {{ end }}