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

Method LogoutContext

httpserver/identity.go:122–131  ·  view source on GitHub ↗
(c context.Context)

Source from the content-addressed store, hash-verified

120}
121
122func (i *IdentityManager) LogoutContext(c context.Context) {
123 authContext := i.ContextUserManager.GetAuthenticationInfo(c)
124 if authContext != nil {
125 authContext.AuthenticatedUser.User = nil
126 authContext.AuthorizedUser.OrganizationUser = nil
127 }
128 w := GetResponseWriter(c)
129 r := GetRequest(c)
130 i.Logout(w, r)
131}

Callers

nothing calls this directly

Calls 4

LogoutMethod · 0.95
GetResponseWriterFunction · 0.85
GetRequestFunction · 0.85
GetAuthenticationInfoMethod · 0.65

Tested by

no test coverage detected