mirror of
https://github.com/boringproxy/boringproxy.git
synced 2024-07-07 04:42:58 -05:00
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.
15 lines
504 B
Cheetah
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" . }}
|