mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-12-02 09:21:48 +02:00
13 lines
341 B
Go
13 lines
341 B
Go
package sessions
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// SessionStore is an interface to storing user sessions in the proxy
|
|
type SessionStore interface {
|
|
SaveSession(rw http.ResponseWriter, req *http.Request, s *SessionState) error
|
|
LoadSession(req *http.Request) (*SessionState, error)
|
|
ClearSession(rw http.ResponseWriter, req *http.Request) error
|
|
}
|