To build a new authentication provider, you need to implement the Auther interface, whose method will be called on the login page after the user has submitted their login data.
1
// Auther is the authentication interface.
2
type Auther interface{
3
// Auth is called to authenticate a request.
4
Auth(r *http.Request, s *users.Storage, root string)(*users.User,error)