I am using asp.net rc1 and am trying to use Route and sessions (Idendity) with a Controller. This combination however results in this error:
InvalidOperationException: No authentication handler is configured to handle the scheme: Microsoft.AspNet.Identity.Application
I have decorated my controller with:
[Route("api3/[controller]")]
and my method with:
[HttpPost("Login")]
I have also tried:
[Route("[action]")] [HttpPost]
When I access my method at /api3/Account/Login, the above error occurs. However, when I remove the Route prefixes, no error occurs and my method is called as expected (at /Account/Login).
I have an additional controller and when both the Account controller and the Supplier controller are void of Route prefixes, every thing works. But if I add Route to the Supplier controller, I can still login in with /Account/Login, but my Supplier controller claims I am not authorized.
This is very strange to me.
Any hints based on the information provided so far?