{{ 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 eq (len .Keys) 0 }} {{ end }} {{ range $key := .Keys }} {{ end }}
Name Active Updated Key

No tokens

{{ if len $key.Name }}{{ $key.Name }}{{ else }}--{{ end }}
{{ if $key.Active }}
{{ else }} {{ end }}
{{ $key.Modified.Format "15:04" }}
{{ $key.Modified.Format "Jan 2, 2006" }}
{{ $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 .Key }}Delete{{ end }} Cancel
{{ template "menu-toggle" . }}
{{ template "admin-token-delete-dialog" . }} {{ end }} {{ define "admin-token-delete-dialog" }} {{ end }}