tokidoki/auth/interface.go

12 lines
231 B
Go
Raw Normal View History

2022-02-21 09:55:02 +00:00
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
}