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

Method SaveSession

oauthproxy.go:560–562  ·  view source on GitHub ↗

SaveSession creates a new session cookie value and sets this on the response

(rw http.ResponseWriter, req *http.Request, s *sessionsapi.SessionState)

Source from the content-addressed store, hash-verified

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 {
561 return p.sessionStore.Save(rw, req, s)
562}
563
564func (p *OAuthProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
565 p.serveMux.ServeHTTP(rw, req)

Callers 3

SignInMethod · 0.95
OAuthCallbackMethod · 0.95

Calls 1

SaveMethod · 0.65

Tested by 1