UPDATE: As JT pointed out while I was trying to work through some bugs on this. This will not be possible to implement in this way. So please do not try to use this macro. I have left it here, in case anyone wants to look at the code. But now I will continue to try to implement this functionality another way.
This macro is used to implement a single sign on function with WebGUI.
For our environment (enterprise, internal web systems), we populate a domain-wide cookie with authentication information when a user signs into the single sign on system (in our case, this is a simple CGI). Our page templates in WebGUI contain this macro, which looks at the cookie and sets the session to the user found in the cookie. This bypasses the WebGUI Authentication systems, and thereby causes several issues:
Despite this, we are very happy with how this works, since our other web tools have been made to recognize this cookie, a user only needs to login to once.
NOTE: This macro must be modified prior to deployment to work with your environment.
P.S. Thanks to Frank Dillon for his idea on this implementation during the WUC hackathon.
Versions:
1.0.1 - fix to only reset session when the single signon cookie does not match the current session username