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
|
|
|
|
}
|