boringproxy/templates/add_token_client.tmpl
Anders Pitman 0a23c2fc0e Limit token permissions
Added the ability to scope tokens to a specific client. If
enabled, this has the affect of limiting the token to being used
to list tunnels for that specific client. It can't be used for
the web UI or for any state-changing actions such as creating
new tunnels.
2022-02-16 11:44:24 -07:00

15 lines
504 B
Cheetah

{{ template "header.tmpl" . }}
<h1>Add Token</h1>
<form action="/tokens" method="POST">
<input type="hidden" name="owner" value="{{$.Owner}}">
<label for="token-client">Limit to client:</label>
<select id="token-client" name="client">
<option value="any">No</option>
{{range $clientName, $c := $.User.Clients}}
<option value="{{$clientName}}">{{$clientName}}</option>
{{end}}
</select>
<button class='button' type="submit">Submit</button>
</form>
{{ template "footer.tmpl" . }}