oauth2_proxy/pkg/apis/sessions/interfaces.go

13 lines
341 B
Go
Raw Normal View History

2019-05-06 13:33:04 +00:00
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
}