{{ define "admin-token-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ if .IsRegistration }}

Registration Tokens

This page list all of the registration tokens. A registration token enables a client to authenticate itself and request a new authentication token from the Spokes server and configure a new tunnel.

{{ end }} {{ if .IsAPI }}

API Tokens

This page list all of the API tokens that can be used for interacting with the Spokes server API. These tokens are used for authenticating and created an administrative session with the server.

Once a session is established the API can be used for automating many of the administrative functions available in the dashboard.

{{ end }}
{{ if .IsRegistration }}{{ end }} {{ if .IsRegistration }}{{ end }} {{ if .IsRegistration }}{{ end }} {{ if eq (len .Keys) 0 }} {{ end }} {{ range $key := .Keys }} {{ if $.IsRegistration }} {{ end }} {{ if $.IsRegistration }} {{ end }} {{ if $.IsRegistration }} {{ end }} {{ end }}
Name ActiveExpirationUpdatedLimitsTunnelsKey

No tokens

{{ if len $key.Name }}{{ $key.Name }}{{ else }}--{{ end }}

{{ if $key.Active }}
{{ else }} {{ end }}
{{ if not $key.Expiration.IsZero }} {{ $key.Expiration.Format "Jan 2, 2006" }} {{ end }} {{ $key.Modified.Format "15:04" }}
{{ $key.Modified.Format "Jan 2, 2006" }}
{{ if $key.MaxActive }} Max Active
{{ $key.MaxActive }}

{{ end }} {{ if $key.MaxCreated }} Max Created
{{ $key.MaxCreated }}
{{ end }}
{{ if $key.NumTunsCreated }} {{ $key.NumTunsCreated }} {{ else }} {{ end }} {{ $key.KeySnippetN 24 }}... {{ $key.Value }}
Copy
{{ template "menu-toggle" . }}
{{ end }} {{ define "admin-token-create-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}

{{ if .Key }}Edit Token{{ else }}Create Token{{ end }}

{{ if .Key }}{{ end }} {{ if len (.Error "scope") }}
{{ .Error "scope" }}
{{ end }} {{ if len (.Error "name") }}
{{ .Error "name" }}
{{ end }} {{ if len (.Error "warning") }}
{{ .Error "warning" }}
{{ end }} {{ if len (.Error "expiration") }}
{{ .Error "expiration" }}
{{ end }} {{ if len (.Error "maxCreated") }}
{{ .Error "maxCreated" }}
{{ end }} {{ if len (.Error "maxActive") }}
{{ .Error "maxActive" }}
{{ end }}

{{ if .IsRegistration }}

{{ end }}
{{ if .Key }}Delete{{ end }} Cancel
{{ template "menu-toggle" . }}
{{ template "admin-token-delete-dialog" . }} {{ end }} {{ define "admin-token-delete-dialog" }} {{ end }} {{ define "admin-token-tunnels-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}

Token-Tunnel Instances

This page displays active tunnels that have been created using the registration token: {{ .Token.Name }}. Tunnels that have been terminated are not present.

{{ template "admin-token-tunnel-list" . }}
{{ template "menu-toggle" . }}
{{ end }} {{ define "admin-token-tunnel-list" }} {{ if eq (len .Tunnels) 0 }} {{ end }} {{ range $tun := .Tunnels }} {{ end }}
Tunnel Status Uptime Client Host Bandwidth Last Active

No tunnels found for this token

{{ $tun.Name }}

Hostname:
{{ $tun.Hostname }}

{{ if eq $tun.State 2 }} {{ else if eq $tun.State 3}} {{ else }} {{ end }} {{ $tun.UptimeString }} {{ if len $tun.Client.OS }} {{ $tun.Client.Version }}
{{ $tun.Client.OS }} / {{ $tun.Client.Arch }}
{{ end }}
{{ $tun.Address }} Daily
{{ $tun.Bandwidth.Daily.String }}

Monthly
{{ $tun.Bandwidth.Monthly.String }}
{{ $tun.LastActive.Format "Jan 2, 2006 15:04" }}
{{ end }}