1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-07-13 01:40:48 +02:00
Files
oauth2-proxy/pkg/apis/sessions/interfaces.go

15 lines
414 B
Go

package sessions
import (
"net/http"
)
// SessionStore is an interface to storing user sessions in the proxy
type SessionStore interface {
Save(rw http.ResponseWriter, req *http.Request, s *SessionState) error
Load(req *http.Request) (*SessionState, error)
LoadWithLock(req *http.Request) (*SessionState, error)
ReleaseLock(req *http.Request) error
Clear(rw http.ResponseWriter, req *http.Request) error
}