For testing our web api we have written test cases where we instantiate HttpServer and run our tests. Initially we did not have Authorization support but we have added it now and our tests are failing because of the following error
Status: 500 InternalServerError
Reason: Internal Server Error
{
"Message": "An error has occurred.",
"ExceptionMessage": "No OWIN authentication manager is associated with the request.",
"ExceptionType": "System.InvalidOperationException",
If I test the apis from a web browser or DHC then they work fine and I don't get this error.
I am not sure what is going, any help would me much appreciated.
None
0 Points
13 Posts
No OWIN authentication manager is associated with the request.
Nov 26, 2014 04:30 PM|SandeepC.ST|LINK
For testing our web api we have written test cases where we instantiate HttpServer and run our tests. Initially we did not have Authorization support but we have added it now and our tests are failing because of the following error
If I test the apis from a web browser or DHC then they work fine and I don't get this error.
I am not sure what is going, any help would me much appreciated.
webapi Owin
All-Star
27133 Points
2676 Posts
Re: No OWIN authentication manager is associated with the request.
Nov 28, 2014 07:14 AM|Shawn - MSFT|LINK
Hi,
For this scenario, about the error message, you could refer to the following information:
http://stackoverflow.com/questions/21089196/no-owin-authentication-manager-is-associated-with-the-request
http://stackoverflow.com/questions/24940170/no-challenge-on-basic-authentication
Regards
webapi Owin