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

Method LoadCookiedSession

oauthproxy.go:555–557  ·  view source on GitHub ↗

LoadCookiedSession reads the user's authentication details from the request

(req *http.Request)

Source from the content-addressed store, hash-verified

553
554// LoadCookiedSession reads the user's authentication details from the request
555func (p *OAuthProxy) LoadCookiedSession(req *http.Request) (*sessionsapi.SessionState, error) {
556 return p.sessionStore.Load(req)
557}
558
559// SaveSession creates a new session cookie value and sets this on the response
560func (p *OAuthProxy) SaveSession(rw http.ResponseWriter, req *http.Request, s *sessionsapi.SessionState) error {

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected