Skip to content

Commit

Permalink
ISPyB LIMS: store sessions in 'session_manager' for user-type logins
Browse files Browse the repository at this point in the history
On successful login using user-type logins, store returned sessions
in 'session_manger' attribute of the HWR.beamline.lims object.
This way session are avail later on.
  • Loading branch information
elmjag committed Feb 4, 2025
1 parent 812155e commit 3b7801c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mxcubecore/HardwareObjects/UserTypeISPyBLims.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def login(self, loginID, psd, ldap_connection=None) -> LimsSessionManager:
raise Exception("Error lims authentication")

# login succeed, get proposal and sessions
self.adapter.get_sessions_by_username(loginID, self.beamline_name)
self.session_manager = self.adapter.get_sessions_by_username(
loginID, self.beamline_name
)

return self.session_manager

def get_proposals_by_user(self, user_name):
proposal_list = []
Expand Down

0 comments on commit 3b7801c

Please sign in to comment.