Move server-side relay auth out of shared and drop the unused validator

This commit is contained in:
Viktor Liu
2026-08-31 16:09:26 +02:00
parent 086d8ba507
commit 5568be0bb1
12 changed files with 9 additions and 107 deletions
+19
View File
@@ -0,0 +1,19 @@
package auth
import (
authv2 "github.com/netbirdio/netbird/shared/relay/auth/hmac/v2"
)
type TimedHMACValidator struct {
authenticatorV2 *authv2.Validator
}
func NewTimedHMACValidator(secret []byte) *TimedHMACValidator {
return &TimedHMACValidator{
authenticatorV2: authv2.NewValidator(secret),
}
}
func (a *TimedHMACValidator) Validate(credentials any) error {
return a.authenticatorV2.Validate(credentials)
}