I have a web application (intranet based) which uses Windows Authentication. Unfortunately there are public computers that have public logins at some company locations. My web app doesn't support these public logins because I need to know the user working with the app.
So, even though these public users are windows authentication users, my app will fail because I have no user account setup for that particular account. I want to then try Active Directory Authentication.
In my Default.aspx.cs I'd have something like this:
protected void Page_Load(object sender, EventArgs e)
userContext = new UserContext(); // If the authenticated user isn't a user in my system then throw an exception
// This I where I want to now do Active Directory Authentication
// Maybe I redirect to a login page or what?
// But remember the user IS authenticated even if they aren't a user in my system so I need to do something about that.
View Complete Post