Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SUPER_DUPER_SECRET_KEY []byte = []byte(os.Getenv("SALT")) //this will be moved...
Functions ¶
func AuthenticateUserLogin ¶
func AuthenticateUserLogin(username string, password string, requestIP string, requestUserAgent string) (*user.User, error)
AuthenticateUserLogin - authenticates a users credentials and returns the user or an error
func GenerateSessionToken ¶
GenerateSessionToken use user identifying info to generate a session token
func VerifyAndProcessToken ¶
VerifyAndProcessToken for a given token verify it is untampered, unexpired,
and finally get the token data and compare it to request data. Return User if valid or error if not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.