Documentation
¶
Overview ¶
internal/auth/credentials.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
GenerateJWT creates a new JWT for a given username
func IsUserInGroup ¶
IsUserInGroup checks if a Linux user is a member of a specific group. Returns false, nil if the group doesn't exist or the user isn't in it. Returns false, error for actual system errors during lookup.
func ValidateCredentials ¶
ValidateCredentials checks if the Linux user exists, validates the password using PAM, and verifies membership in EITHER the requiredAdminGroup OR the configured APIUserGroup.
Types ¶
Click to show internal directories.
Click to hide internal directories.