Documentation
¶
Index ¶
Constants ¶
View Source
const Prefix = "[auth-token]"
Variables ¶
This section is empty.
Functions ¶
func Endpoint ¶
Endpoint returns only the host and path of a URL. Userinfo, query, and fragments are deliberately discarded.
func SafeUserID ¶
SafeUserID returns a sanitized canonical identifier and suppresses values that look like credential or configuration URLs.
func Sanitize ¶
Sanitize redacts common credential representations and URL secrets before truncating to a bounded number of Unicode characters.
Types ¶
type Event ¶
type Event struct {
Op string
UserID string
Provider string
AttemptID string
Source string
Reason string
RefreshRotated string
IDTokenSource string
Caller string
ScheduleID string
RunID string
Endpoint string
HTTPStatus int
OAuthErrorCode string
Classification string
Action string
Elapsed time.Duration
Recovered bool
Err error
}
Event is a safe, stable token-lifecycle log record. Empty fields remain present in the log so automated searches can rely on a consistent shape.
Click to show internal directories.
Click to hide internal directories.