GithubHelp home page GithubHelp logo

Comments (6)

icflorescu avatar icflorescu commented on May 28, 2024

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.

icflorescu avatar icflorescu commented on May 28, 2024

This is now in the README.md.

from iisexpress-proxy.

mklement0 avatar mklement0 commented on May 28, 2024

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.

Mensana88 avatar Mensana88 commented on May 28, 2024

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.

byoigres avatar byoigres commented on May 28, 2024

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.

Mensana88 avatar Mensana88 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.