{{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.GetHeader}}
header
{{end}}
{{if .QueryToken.Enable}}
- Query token
- in
{{.QueryToken.GetParam}}
param
{{end}}
{{if .HeaderToken.Enable}}
- Header token
- in
{{.HeaderToken.GetHeader}}
header
{{end}}
{{if .Basic.Enable}}
- Basic
- {{.Basic.Logins | join ", "}}
{{end}}
{{end}}
{{end}}