Sample VBScript code to test SDK functionality
Description:
This article provides sample VBS code to test the SAFauthenticator SDK functionality with SAFsolution Client.
PRODUCTS
SAFauthenticator SDK 1.0
- SAFsolution 1.x
INFORMATION
You may use a text editor to create a file with a .vbs extension and paste the following code into it. You must have SAFsolution Client and appropriate BSP/biometric device installed, as well as the safsolauth.dll library (included with the SDK) properly registered in order to use this sample code.
File: safsdktest.vbs
-----------------------
--beginning of file--
Dim fValid
strUsername = inputbox("Please enter your Username")
strDomain = inputbox("Please enter your Domain name")
Set objSAFsolAuth = CreateObject("safsolauth.SAFsolutionAuthenticator")
fValid = objSAFsolAuth.Authenticate(strDomain, strUsername)
If fValid Then
MsgBox ("SAFsolution user passed authentication!")
Else
MsgBox ("SAFsolution user failed authentication!")
End If
--end of file--
Upon execution of this script, you will be prompted for a user name, followed by the user's domain. If the user has an active enrollment, this will be followed by a biometric authentication prompt. You will receive a succeeded or failed authentication dialog after verification takes place.
Keywords:
sdk software development kit safauthenticator safauth safsolution sample code vbs vb vbscript