fix(cmd/auth-proxy): show all working credentials, not just the first one

This commit is contained in:
AJ ONeal 2026-02-27 00:24:49 -07:00
parent cbacf9ffc9
commit 7b40097396
No known key found for this signature in database

View File

@ -293,8 +293,8 @@ func run(cli *MainConfig) {
}
if usableRoles == 0 {
fmt.Fprintf(os.Stderr, "Current credentials, tokens, and permissions:\n")
fmt.Fprintf(os.Stderr, " %s\t%s\t%s\n", u.Purpose, u.ID(), strings.Join(u.Roles, " "))
}
fmt.Fprintf(os.Stderr, " %s\t%s\t%s\n", u.Purpose, u.ID(), strings.Join(u.Roles, " "))
usableRoles += 1
}