fix(auth/csvauth): ID() returns Name only, not Name~hashID for tokens

Token hashID is an internal cache key for lookup disambiguation.
Exposing it in ID() leaks implementation detail to callers — JWT act
claims, audit logs, and session records all got the raw fingerprint
suffix instead of the human-readable credential name.
This commit is contained in:
AJ ONeal 2026-04-13 19:41:59 -06:00
parent 4a9c331ef9
commit 52b882dd1b
No known key found for this signature in database

View File

@ -57,9 +57,6 @@ type Credential struct {
}
func (c *Credential) ID() string {
if c.Purpose == PurposeToken {
return c.Name + hashIDSep + c.hashID
}
return c.Name
}