Automatic Login

The automatic login feature allows a web service user to prepare in advance the authentication of a standard MEMdoc application user and the subsequent application view context that should be loaded after the login. 

This operation is useful in scenarios where, for example, the web service client knows that a given MEMdoc user will wish to login to the MEMdoc portal to do a specific task. For example, if 'UserA' has to login to MEMdoc to insert data into 'PatientA', the web service client, by calling this operation, can authenticate 'UserA' (e.g by providing the corresponding login name and password) and specify that the desired view context for this special login should consist of the patient information of 'PatientA'.

The reply to a successful call to this web service operation on the module will contain an URL that, when used, will allow its caller to automatically login with desired user onto the desired view. Note that we do not allow for these URLs to be used more than once. Each automatic login URL can be used once and only once.

To execute this operation, assuming the scenario that an automatic login is being created to allow a user to directly navigate into a patient, the client should:

  1. Identify the patientId and departmentId context for the operation. To find a valid execution context, the web service operations module.searchPatient , which returns patientIds for a department, and module.getPatientById , which returns details on a patient, can be used. 
  2. The user invoking this operation must know the login credentials - user name and password -  for the user that will be logging into the MEMdoc application through the automatic login mechanism. Additionally, the user that will be automatically logged into MEMdoc must have the minimal permissions to view the patient.
  3. Execute a call to module.createAutomaticLogin service providing (i) the context determined in (1.) - (patientId and departmentId) ; and (ii)  valid login credentials for an MEMdoc user.  As illustrated in the soap-request-reply page.