Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExpiredToken = errors.New("token has expired") ErrInvalidToken = errors.New("token is invalid") )
Functions ¶
func CheckPassword ¶
func GenerateClientToken ¶
func HashPassword ¶
Types ¶
type Auth ¶
type Auth interface {
Issue(context.Context, ClaimProps) (*string, error)
Verify(context.Context, string) (*Claims, error)
}
func NewAuthSigningMetadata ¶
type ClaimProps ¶
type Claims ¶
type Client ¶
type Client struct {
KmsClient KmsClientIface
KeyId string
SigningAlgorithm string
}
type EnrollmentPayload ¶
type EnrollmentPayload struct {
SerialNumber string `json:"serial_number"`
}
type KmsClientIface ¶
type ServicePayload ¶
type ServicePayload struct {
ServiceID uuid.UUID `json:"service_id"`
ServiceAccount string `json:"service_account"`
Environment string `json:"environment"`
ValidSubjectAlternateName []string `json:"subject_alternate_name"`
ValidCertificateAuthorities []string `json:"certificate_authorities"`
CertificateValidity int16 `json:"certificate_validity"`
SubordinateCa string `json:"subordinate_ca"`
ExtendedKey string `json:"certificate_request_extension"`
SANRegularExpression string `json:"regular_expression"`
}
Click to show internal directories.
Click to hide internal directories.