Some mainframe hosts have a Digital Certificate Access Server (DCAS). You can request a temporary, one-time pass ticket from DCAS for logging into a host application. Using this object, you can write and configure a macro to run when the session starts and to automatically log you in using the credentials of the currently logged in user.
Table 5-29 AutoSignon
Method |
|
---|---|
getPassTicket() |
Obtains a pass ticket to be used for signing onto a mainframe application. Multiple pass tickets may be requested using different application IDs. Parameters {String} application ID tells the host which application the sign on is for Returns {Promise} fulfilled with the pass ticket key or rejected if the operation fails. The pass ticket obtained from DCAS only works with the current host session and is valid for ten minutes. |
sendUserName() |
Applies the user name contained in the pass ticket to the field at the current cursor location on the current host screen. The user name must be sent before the password. Sending the password first will invalidate the pass ticket, and you will need to get another one. Parameters {String} passTicketKey opbtained from getPassTicket Returns {Promise} fulfilled if the user name is successfully sent. Rejected if the operation fails. |
sendPassword() |
Applies the password contained in the pass ticket to the field at the current cursor location on the current host screen. The user name must be sent before the password. Sending the password first will invalidate the pass ticket, and you will need to get another one. Parameters {String} passTicketKey obtained from getPassTicket Returns {Promise} fulfilled if the password is successfully sent. Rejected if the operation fails. |