Use 'at' for auth token prefix (#397)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-21 16:04:13 -04:00
1 parent 6a09e0966e
commit 35c3f5b717
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ func (s *AuthToken) decrypt(ctx context.Context, cipher wrapping.Wrapper) error
}
const (
AuthTokenPrefix = "t"
AuthTokenPrefix = "at"
// The version prefix is used to differentiate token versions just for future proofing.
TokenValueVersionPrefix = "0"
tokenLength = 24
+2
View File
@@ -35,6 +35,8 @@ func HelpMap(resType string) map[string]func() string {
resource.HostCatalog.String(): "hc",
resource.HostSet.String(): "hs",
resource.Host.String(): "h",
resource.Session.String(): "ss",
resource.Target.String(): "t",
}
return map[string]func() string{
"base": func() string {