Versions in this module Expand all Collapse all v0 v0.4.2 Nov 28, 2024 Changes in this version + func Login(user string, password string, userStore UserStore, w http.ResponseWriter, ...) error + func Logout(user string, userStore UserStore, w http.ResponseWriter) error + type User struct + Data map[string]interface{} + LastSeen time.Time + LoginTime time.Time + Name string + Pass string + Session string + type UserStore interface + AddUser func(user string, password string) error + ChangePassword func(user string, oldPassword string, newPassword string) error + DeleteUser func(user string) error + EndSession func(user string) error + GetData func(user string, key string) (interface{}, error) + GetLastLoginTime func(user string) (time.Time, error) + GetLastTimeSeen func(user string) (time.Time, error) + GrantToken func(user, password string, ttl int) (string, error) + InitiateSession func(user string, password string, ttl int) (string, error) + SetData func(user string, key string, value interface{}) error + ValidateToken func(token string) (bool, error) + ValidateTokenWithScopes func(token string, scopes map[string]string) (bool, error) + ValidateUser func(user string, sessionId string) (bool, error)