Documentation
¶
Index ¶
Constants ¶
View Source
const (
ServiceTokenHeader = "gitlab-iam-auth-token"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator performs constant-time token validation against a set of pre-computed SHA512 hashes. It is safe for concurrent use.
func NewValidator ¶
NewValidator creates a Validator that accepts the given tokens. Empty token strings are silently ignored (supports optional next_service_token).
Click to show internal directories.
Click to hide internal directories.