MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / SessionStore

Interface SessionStore

pkg/apis/sessions/interfaces.go:11–16  ·  view source on GitHub ↗

SessionStore is an interface to storing user sessions in the proxy

Source from the content-addressed store, hash-verified

9
10// SessionStore is an interface to storing user sessions in the proxy
11type SessionStore interface {
12 Save(rw http.ResponseWriter, req *http.Request, s *SessionState) error
13 Load(req *http.Request) (*SessionState, error)
14 Clear(rw http.ResponseWriter, req *http.Request) error
15 VerifyConnection(ctx context.Context) error
16}
17
18var ErrLockNotObtained = errors.New("lock: not obtained")
19var ErrNotLocked = errors.New("tried to release not existing lock")

Callers

nothing calls this directly

Implementers 5

Managerpkg/sessions/persistence/manager.go
SessionStorepkg/sessions/cookie/session_store.go
MockStorepkg/sessions/tests/mock_store.go
SessionStorepkg/sessions/redis/redis_store.go
fakeSessionStorepkg/middleware/stored_session_test.go

Calls

no outgoing calls

Tested by

no test coverage detected