Use 'at' for auth token prefix (#397)
This commit is contained in:
1 parent
6a09e0966e
commit
35c3f5b717
2 files changed
+3
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user