http: root token in init

This commit is contained in:
Mitchell Hashimoto
2015-03-29 16:22:09 -07:00
parent 39f2da0fbe
commit 82ae75aa79
2 changed files with 8 additions and 2 deletions

View File

@@ -57,7 +57,8 @@ func handleSysInitPut(core *vault.Core, w http.ResponseWriter, r *http.Request)
}
respondOk(w, &InitResponse{
Keys: keys,
Keys: keys,
RootToken: result.RootToken,
})
}
@@ -67,7 +68,8 @@ type InitRequest struct {
}
type InitResponse struct {
Keys []string `json:"keys"`
Keys []string `json:"keys"`
RootToken string `json:"root_token"`
}
type InitStatusResponse struct {