We have a asp.net web app and associated self-hosted nancy rest API. Currently the web app is secure over ssl and the api is not on port 80 (still under development).
IIS authentication is on and redirects unauthorised requests to the user login page.
In an ideal world I would like nancy to also be on port 443.
But this means that IIS redirects any traffic on port 443 to the user login page.
Is it possible to have application/json requests rewritten to go to nancy prior to IIS authentication redirection? Or any paths that begin with /api/
How can I get IIS authentication and nancy to play nice with the same port?