MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getUserSession

Method getUserSession

rest/session_api.go:252–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func (h *handler) getUserSession() error {
253
254 h.assertAdminOnly()
255 session, _, err := h.db.Authenticator(h.ctx()).GetSession(h.PathVar("sessionid"))
256 if err != nil {
257 return err
258 }
259 return h.respondWithSessionInfoForSession(session)
260}
261
262// ADMIN API: Deletes a specified session. If username is present on the request, validates
263// that the session being deleted is associated with the user.

Callers

nothing calls this directly

Calls 6

assertAdminOnlyMethod · 0.95
ctxMethod · 0.95
PathVarMethod · 0.95
GetSessionMethod · 0.80
AuthenticatorMethod · 0.45

Tested by

no test coverage detected