-
Notifications
You must be signed in to change notification settings - Fork 12k
### Desired functionality Support for proxy to backend with Windows Authentication #5627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Going into the CLI source in |
That is awesome. Can you give me simple example of how to implement such a js file? This is the code of which I believe is responsible for incorporating the Windows authentication over the proxy:
|
I think you should be able to do something like:
We actually just pass it on to |
That is awesome, it's a much better solution than hacking. I will test this next week and report back. |
You put me in the right direction. This solution works with windows authentication, with proxy.conf.js instead of proxy.conf.json. Thanks @filipesilva! package.json:
proxy.conf.js:
|
Glad to hear it works! I don't see us adding a dedicated option for windows authentication though, imho this configuration item is enough. |
Nice!!! @mcanic @filipesilva this is awesome! Thank you both for looking into this. I will update my blog post as soon as possible. |
I updated the blog post. http://www.meekdeveloper.com/angular-cli-asp-net-core-windows-authentication. Thank you again to both @mcanic and @filipesilva for taking the time to look at this hack and finding a solid solution. |
Fixed via #4070. Cheers for updating your blogpost @The-Meek-Developer ! |
I see the issue is closed. If you guys are still watching: a) Is the technique proposed by @The-Meek-Developer the "best practice" in production? (works well at dev-time) |
Hi all. This method works well when I had it running in my local machine. But when I run ng build --prod and place the files in IIS. The Web API calls fail saying Not found (404). Is there anyone know what should I do with IIS in order to get the proxy work ? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We would like to have support for connecting to a backend with Windows Authentication.
I have a c# asp.net core web application with api's, the angular application will be in the wwwroot folder, so that is all in 1 project. During development it is possible to successfully use a proxy with proxy.conf.json, but as far as I can see it does not support Windows authentication pass-through. I was able to make it work by using this hack: http://www.meekdeveloper.com/angular-cli-asp-net-core-windows-authentication/
here's my stackoverflow post: http://stackoverflow.com/questions/42981555/angular-cli-windows-authentication-backend/43001482#43001482
The text was updated successfully, but these errors were encountered: