Penn Computing
Computing Menu Computing A-Z
Computing Home Information Systems & Computing Penn
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.

top

Information Systems and Computing
University of Pennsylvania
Comments & Questions


University of Pennsylvania Penn Computing University of Pennsylvania Information Systems & Computing (ISC)
Information Systems and Computing, University of Pennsylvania