mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
Implement IMAP auth provider
This commit is contained in:
parent
96ef5f9b2a
commit
5a641ceca1
7 changed files with 100 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue