MCPcopy Create free account
hub / github.com/crewjam/saml / CreateSession

Method CreateSession

samlsp/session.go:42–42  ·  view source on GitHub ↗

CreateSession is called when we have received a valid SAML assertion and should create a new session and modify the http response accordingly, e.g. by setting a cookie.

(w http.ResponseWriter, r *http.Request, assertion *saml.Assertion)

Source from the content-addressed store, hash-verified

40 // should create a new session and modify the http response accordingly, e.g. by
41 // setting a cookie.
42 CreateSession(w http.ResponseWriter, r *http.Request, assertion *saml.Assertion) error
43
44 // DeleteSession is called to modify the response such that it removed the current
45 // session, e.g. by deleting a cookie.

Implementers 3

CookieSessionProvidersamlsp/session_cookie.go
covSessionProvidersamlsp/middleware_coverage_test.go
staticSessionProvidersamlsp/middleware_logout_test.go

Calls

no outgoing calls