I have an intranet site set up on the IIS side I am allowing anonymous auth and windows auth. On the application side I have ASP.NET MVC4. I am taking advantage of the new AllowAnonymous Attribute on my landing page. The thing is, most of the people that land on that landing page are on the domain, only a small subset needs anonymous access to this page. My question is, before this page is loaded, is it possible to try to authenticate the user, without the anonymous users being prompted for credentials? I would like the anonymous to be the fallback, not the windows auth. When all users first hit that page, everyone is anonymous because they have not yet been requested by the app to authorize the user.
namespace Random.Controllers { [Authorize] public class HomeController : Controller { // // GET: {id}/Home/ [AllowAnonymous] public ViewResult Index() { return View(); } } }
Thanks :)