Authentication Setup.....how?http://forums.asp.net/t/1338274.aspx/1?Authentication+Setup+how+Thu, 23 Oct 2008 12:56:32 -040013382742702232http://forums.asp.net/p/1338274/2702232.aspx/1?Authentication+Setup+how+Authentication Setup.....how? <p>I don't know if I'm just not seeing this from the right angle, or if i'm just having a brain fart, but I could use some help here. :)</p> <p>&nbsp;</p> <p>We have this stale portal application for our external agents that uses forms authentication. &nbsp; I'm using this site as a chance to get my feet wet with MVC, so on my local, i'm doing a complete rewrite of it.&nbsp; Yay?!</p> <p>// Current Site<br> At the root of the site, there is a Login.aspx and a WinLogin.aspx.&nbsp;&nbsp; The Login page detects via IP whether or not the user coming to the site is behind the firewall or not, and directs them to the WinLogin page if they're an internal user.&nbsp;&nbsp;&nbsp; WinLogin does a database lookup to get the user id of the employee (Bypassing the need for supplying any passwords etc, basically a autologin functionallity) and sets the FormsAuthentication Cookie with the userid.&nbsp; The table that holds the Agent information holds the employee's information also, just as if they were Agents.<br> &nbsp;</p> <p>The whole thing works great in production.&nbsp; But trying to replicate this with the MVC framework is making me bald.&nbsp;&nbsp; Anyone have any ideas on how I could approach this?<br> </p> 2008-10-23T12:56:32-04:00