Authenticated User

I have several webforms that will be hosted on an intranet site and the users will need to be logged into domain to access them. I would like to have access to the username of the person submitting the form within workflow.

With .Net, I can enable windows authentication on the site and retrieve the user identity in code behind with User.Identity.Name. Is there something similar that I can do with Workflow?

The only workaround I have been able to come up with so far is to embed a .vbs script in the page that retrieves logged in user name at the client end and then possibly embed that in a hidden field so it is available in the postback info. Sounds kinda clunky, so I am looking for a better idea.

I think you could put IIS in front of the workflow and configure it to act as a reverse proxy with authentication (there’s howto available).

Then you need to rewrite the URLs or requests to include the authenticated user name. If you decide to rewrite the url, make it so it goes http://hostname/httpinputactionname/user and it will be available as one of subX elements in the data file which http input plugin creates.

Mind you, you cannot use URL rewrite for this but you will have to use something like http://www.helicontech.com/isapi_rewrite/