{{with .Unit.Environment}}
Name |
Value |
{{range $k,$v := .}}
{{$k}}
|
{{$v}} |
{{end}}
{{else}}
no custom variables defined
{{end}}
{{if not $.Unit.Secured}}
no authorization defined
{{else}}
{{with .Unit.Authorization}}
{{if .JWT.Enable}}
- JWT
- in
{{.JWT.Header}}
header
{{end}}
{{if .QueryToken.Enable}}
- Query token
- in
{{.QueryToken.Param}}
param
{{end}}
{{if .HeaderToken.Enable}}
- Header token
- in
{{.HeaderToken.Header}}
header
{{end}}
{{if .Basic.Enable}}
- Basic
- {{.Basic.Users | keys | join ", "}}
{{end}}
{{end}}
{{end}}