Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLdapInterface ¶
func RegisterLdapInterface(newInterface LdapInterface)
func RegisterOauthProvider ¶
func RegisterOauthProvider(name string, newProvider OauthProvider)
Types ¶
type LdapInterface ¶
type LdapInterface interface {
DoLogin(team *model.Team, id string, password string) (*model.User, *model.AppError)
GetUser(id string) (*model.User, *model.AppError)
CheckPassword(id string, password string) *model.AppError
}
func GetLdapInterface ¶
func GetLdapInterface() LdapInterface
type OauthProvider ¶
type OauthProvider interface {
GetIdentifier() string
GetUserFromJson(data io.Reader) *model.User
GetAuthDataFromJson(data io.Reader) string
}
func GetOauthProvider ¶
func GetOauthProvider(name string) OauthProvider
Click to show internal directories.
Click to hide internal directories.