Comments (6)
Thank you the kind words.
I have no idea on how to possibly implement this, nor any chance to test such a scenario at the moment, but if you have any idea, please feel free to make a PR.
Meanwhile, I'll just add a quick reference to this issue in the README.md
.
from iisexpress-proxy.
This is now in the README.md
.
from iisexpress-proxy.
I appreciate it, thanks.
As for testing: In VS2015, if you create an ASP.NET Web Application and choose MVC
on the 2nd creation-dialog page, and then click Change Authentication
and choose option Windows Authentication
, you'll get a project that requires valid Windows credentials to access the site.
You're implicitly authenticated on the dev machine when running from Visual Studio, but on external access you should be prompted for credentials in a pop-up dialog box - this is where proxying currently throws the Unauthorized error instead.
Unfortunately, I don't know how or even if the problem can be solved.
from iisexpress-proxy.
Hi Ionut,
Thanks for this fantastic tool. I too stumbled upon it, being redirected from one of your posts on StackOverflow. My scenario is as follows: I am developing a Line-of-Business Windows Store 8.1 application that I side-load on a tablet. This app uses a RESTful Web API currently running under IIS Express on my development machine. The app running on the tablet was not able to see the Web API because IIS Express does not exposes it to the outside world. While I was researching this issue I found your tool. I installed it on my development server and poof, the Web API was visible outside, all of a sudden. I was able to test it using Fiddler running on the tablet. However, my app still got HTTP 401.1 for all my calls and it's most likely because it uses Windows Authentication. This LoB application is supposed to work in the client's Intranet, hence the integrated authentication I have to use. The interesting thing though is that your tool works when I test from Fiddler. Normally, I would see 3 messages posted, the first 2 returning HTTP Code 401 and the third returning the nice 200. However, if I call a method from the Web API in Fiddler, running on the tablet, while the Web API runs under IIS Express on a remote machine and I also use iisexpress-proxy, I only see two messages posted. The first one is returned with 401 and the second one is returned with the nice 200 - OK.
I have spent an awful lot of time on Stack Overflow and MSDN, thinking that there is something wrong with my client code. I just found this post now and it kind of ruined my excitement about using your wonderful tool. Now, it looks like the only way out is to deploy the Web API under a full-blown IIS even though we may still have to make additions to it.
from iisexpress-proxy.
I have the exactly same problem when I was using browser sync and I ended here thinking that this were to solve my problem until I read that this does not work with windows authentication. What a shame, I'm reading a tons of articles about this and I'm not getting closer to a solution.
from iisexpress-proxy.
In the end, this blog post by Scott Hanselman helped me solve the problem. It is not as elegant as Ionut's solution, but it works with Windows Authentication.
from iisexpress-proxy.
Related Issues (20)
- Offline installation fails - npmbox npmunbox HOT 3
- Request requires localhost HOT 3
- Sorry for not being active during the last couple of weeks HOT 1
- Redirects to the IIS server should be transformed HOT 4
- HTTPS
- unable to use it on android emulator like gennymotion
- SignalR not working with proxy. HOT 4
- Error: Can't set headers after they are sent.
- VPN functionality not working
- AWS EC2 HOT 2
- Swagger doesn't work properly with the plugin HOT 2
- permissions denied HOT 2
- instead of ip, name based urls HOT 4
- Problematic dependency on OpenSSL HOT 2
- Url not matching regex HOT 4
- Url not matching regex ^2 HOT 1
- To all contributors - notice to show support for UA
- Not working on windows 11 on MacBook Pro M1 via Parallels Desktop HOT 4
- Great utility HOT 1
- Support a range of ports?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iisexpress-proxy.