Implement IMAP auth provider

This commit is contained in:
Drew DeVault 2022-02-21 10:55:02 +01:00
parent 96ef5f9b2a
commit 5a641ceca1
7 changed files with 100 additions and 1 deletions

View file

@ -0,0 +1,11 @@
package auth
import (
"net/http"
)
// Abstracts the authentication backend for the server.
type AuthProvider interface {
// Returns HTTP middleware for performing authentication.
Middleware() func(http.Handler) http.Handler
}