Jeff, thanks for the reply! But in mine it does
The goal is a script that process cards and PINs provided by LeDAS against cardID stored in the Pharos database.
I expect from it to go by AppMode.Alternate path and gets from inputs["CardId"].Data.Substring(1)) just 0 (extracted from A0).
Apparently, I am wrong on something. Just can not figure out where
Lexmark eDas and RegisterMe applications work in quite unique ways, creating the need to write a script that accounts for the unique operation.
The script you provide is defining a single input named "CardID." The "CardID" input is only passed on when using the RegisterMe application. It is not passed on when authenticating through eDAS.
When authenticating through eDAS, the eDAS application will pass "UserId" and "Password" input values . Your script must be written so that it defines and collects both of those input values. eDAS will also append a "C" to the beginning of the data collected by a badge swipe. Your script will also need to strip off the leading "C" character before attempting to search Blueprint for a matching user.
I suspect that you have access to the Lexmark "RegisterMe" authentication script that is commonly used. (If not, let me know and I will upload a copy.) You may want to use that script as a reference item to help understand the input values that the Lexmark solutions generate, and how they are processed through the script. I think it might shed some light on how your simple authentication script will need to be modified to support Lexmark operation.
Thank you, Tim! Following your advice I've been able to grasp the idea of how it works on Lexmark. Managed to create a suitable script which is being tested and works just fine.
Could you please tell me where to find the Input class source code?
Without these lines
if ( inputs.Count == 0 )
cardId.And( userId ).Validate( inputs );
the test tab is empty and I'd like to better understand why it is so.