Versions in this module Expand all Collapse all v0 v0.4.7 Oct 20, 2021 Changes in this version + func AuthDisable(db *gorm.DB, user *core.User, name string) error + func AuthEnable(db *gorm.DB, user *core.User, name string) (string, error) + func AuthEnableCommit(db *gorm.DB, user *core.User, name string, given string) error + func AuthSetMain(db *gorm.DB, u *core.User, name string, module string, extra string) error + func AuthSetSecret(user *core.User, name string, given string, extra string) error + func AuthVerify(user *core.User, name string, stepExtra string, given string, extra string, ...) error + func ConfigCommit(db *gorm.DB, user core.User, name string, params url.Values) error + func ConfigView(db *gorm.DB, user core.User, name string) (string, map[string]string) + func EnsureEnabled(db *gorm.DB, u core.User, name string, module string, extra string, ...) error + func FollowUp(user core.User, step string) string + func HumanName(name string) string + func LoginView(name string) string + func SeedStep(name string, stepExtra string) string + func SetupView(db *gorm.DB, user core.User, name string, challenge string) (string, string) + func VerifyExtra(db *gorm.DB, user core.User, step string, stepExtra string, given string, ...) error + func VerifyMain(db *gorm.DB, user core.User, given string, name string, ...) error + type AdminViewPostFunc func() error + type AuthExtra struct + Enable bool + Order string + type ConfigFunc func(*core.User, *core.AuthProvider, url.Values) error + type ConfigViewFunc func(core.User, *core.AuthProvider) (map[string]string, error) + type EnableCommitFunc func(core.User, *core.AuthProvider, string) error + type EnableFunc func(core.User, *core.AuthProvider) (string, error) + type Provider struct + Cap ProviderCap + ConfigCommit ConfigFunc + ConfigView ConfigViewFunc + Description string + Enable EnableFunc + EnableCommit EnableCommitFunc + EnableView SetupViewFunc + HumanName string + Name string + Seed SeedFunc + SetSecret SetSecretFunc + Verify VerifyFunc + func GetAuthProvider() []Provider + type ProviderCap struct + Configurable bool + Instantiable bool + MainEnable bool + Seed bool + SetSecretCommit bool + ValidateRegistration bool + type SeedFunc func(string) string + type SetSecretFunc func(*core.User, string, string) error + type SetupViewFunc func(core.User, *core.AuthProvider) (string, error) + type UserProviderCap struct + IsConfigurable bool + MainAble bool + type UserProviderStruct struct + Cap UserProviderCap + Description string + Extra string + HumanName string + InstanceName string + IsEnabled bool + IsMain bool + Name string + func ListAuth(u core.User) []UserProviderStruct + type VerifyFunc func(*core.User, string, string, string, string) error