Skip to content

Commit

Permalink
Attach OrgID to the session object generated by plugin (TykTechnologi…
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Mar 20, 2020
1 parent fbb6d87 commit 34ae059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gateway/coprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ func (m *CoProcessMiddleware) ProcessRequest(w http.ResponseWriter, r *http.Requ
returnedSession.MetaData[k] = string(v)
}

returnedSession.OrgID = m.Spec.OrgID

existingSession, found := GlobalSessionManager.SessionDetail(m.Spec.OrgID, sessionID, false)
if found {
returnedSession.QuotaRenews = existingSession.QuotaRenews
Expand Down

0 comments on commit 34ae059

Please sign in to comment.