FOR ARCHIVAL PURPOSES ONLY
The following instructions apply to using Websec
to authenticate for web applications. Websec was retired
in December 2009 and replaced
by a new authentication system, Penn Weblogin.
|
Example ASP code to interact with the web-security module
Penn HR has developped a Windows Dynamic Linker Library (WebSecWrapper.zip) and documentation which can be used to call functions that interact with websec_client.exe. Alternatively you can call websec_client.exe externally like this:
Dim strResult as String
Try
Dim MyProcess As New Process
MyProcess.StartInfo.FileName = c:\websec\websec_client.exe
MyProcess.StartInfo.Arguments = "applicationname query_token token"
MyProcess.StartInfo.CreateNoWindow = False
MyProcess.StartInfo.UseShellExecute = False
MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
MyProcess.StartInfo.RedirectStandardOutput = True
MyProcess.Start()
strResult = MyProcess.StandardOutput.ReadToEnd
MyProcess.WaitForExit()
MyProcess.Close()
MyProcess = Nothing
Catch
Throw New ApplicationException("WebSec client could not be launched.")
End Try
Code above and zip file provided by Penn HR
This function will return a string which must be parsed manually.
|