omni/internal/pkg/auth/authenticator.go
Edward Sammut Alessi d3ae77c0cc
chore: bump copyright to 2026
Bump copyright for conformance to 2026

Signed-off-by: Edward Sammut Alessi <edward.sammutalessi@siderolabs.com>
2026-01-21 15:30:49 +01:00

26 lines
661 B
Go

// Copyright (c) 2026 Sidero Labs, Inc.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
package auth
import (
"context"
"github.com/siderolabs/go-api-signature/pkg/message"
"github.com/siderolabs/omni/internal/pkg/auth/role"
)
// Authenticator represents an authenticator.
type Authenticator struct {
Verifier message.SignatureVerifier
Identity string
UserID string
Role role.Role
}
// AuthenticatorFunc represents a function that returns an authenticator for the given public key fingerprint.
type AuthenticatorFunc func(ctx context.Context, fingerprint string) (*Authenticator, error)