I just tested a working Web.Api named "WebApiServizio1" protected with a OAuth2 BearerAuthentication (Owin implementation) and it's been deployed on the root of my IIS WebServer.
I would like to change the current webserver configuration moving the "WebApiServizio1" web.Api inside a new website WEBAPI. So I can host more then one api (with the same host and port).
IIS: WEBAPI webSite Port:80 (AppPool: Integrated, 4.0)
PROBLEM But when I try to autenticate with the OWIN Middleware I can't obtain the Token, I get a "404 - not found" response trying to reach the TokenEndpointPath.
Recap:
http://localhost/WebApiServizio1/ HTTP 403.14 - Forbidden CORRECT! http://localhost/WebApiServizio1/oauth/token/ HTTP 404.0 - Not Found - :(
This the current Owin.Startup configuration:
Any ideas?