Hi everyone,
I am quite new to Auth0 implementation. I am tryig to redirect the login to Auth0 application I created (.net) and just after calling this method in the controller:
public ActionResult Login(string returnUrl)
{
HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties
{
RedirectUri = returnUrl ?? Url.Action("Index", "Home")
},
"Auth0");
return new HttpUnauthorizedResult();
}
For some reason the application is going on error:
The controller for path ‘/login.aspx’ was not found or does not implement IController.
Any idea? I copied the example for .NET OWIN application and using the same keys for domain etc. in the example I am correctly directed to the Auth0 Universal Login page.
Thanks,
Ross.