MCPcopy Create free account
hub / github.com/ericls/imgdd / Logout

Method Logout

httpserver/identity.go:102–106  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

100}
101
102func (i *IdentityManager) Logout(w http.ResponseWriter, r *http.Request) {
103 i.Persister.Set(w, r, authenticated_user_id_session_key, "")
104 i.Persister.Set(w, r, authroized_user_id_session_key, "")
105 i.Persister.Clear(w, r)
106}
107
108func (i *IdentityManager) AuthenticateContext(c context.Context, userId string, organzationUserId string) {
109 w := GetResponseWriter(c)

Callers 3

LogoutContextMethod · 0.95
TestLoginLogoutFunction · 0.95

Calls 2

SetMethod · 0.65
ClearMethod · 0.65

Tested by 2

TestLoginLogoutFunction · 0.76