Comments on: How to implement Windows Authentication in an Angular (^4.3.1) application with a stand-alone Web API/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/Blog of the Spikes app developersTue, 21 Jan 2020 12:42:55 +0000hourly1http://wordpress.com/By: Sunil Bailwal/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-17010Tue, 21 Jan 2020 12:42:55 +0000/?p=4445#comment-17010Thanks Ruben, This article help me a lot.

Like

]]>
By: neigh/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15923Wed, 08 May 2019 06:14:59 +0000/?p=4445#comment-15923Hey, is it possible to get the user information (nt user name) in the angular 6 app itself. I am using angular 6 (for the web interface) and flask (web api). So, I don’t really know how to get the user info in flask. It would be enough for me to get the info in angular 6 itself. Your help will be very much appreciated. Thanks.

Like

]]>
By: Vittorio Morellini/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15911Tue, 30 Apr 2019 16:29:27 +0000/?p=4445#comment-15911Hi Ruben,
I’ve opened the solution in VS2019, and I have 2 errors in typescript, I do not use 1.8 becaus is not available
I use the version 2.8 or 3.3
I’ve got these errors:

self.authenticatingPromise
return defer.promise

The error is in the Angular project, the web api project compile well
What do I have to do to solve this error ?

Best Regards
Vittorio

Like

]]>
By: Ruben B/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15448Mon, 15 Apr 2019 07:51:51 +0000/?p=4445#comment-15448In reply to Steve.

You still need to allow anonymous access to your api to handle OPTION requests.

Like

]]>
By: Steve/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15386Sun, 14 Apr 2019 21:20:27 +0000/?p=4445#comment-15386I’ve implemented this, but when I click on the Authenticate button, a prompt appears asking me to enter my username and password. Is this the expected behaviour? Or might I have done something incorrectly since this is windows authentication, shouldn’t Angular should pass my windows identity to the webapi service?

Like

]]>
By: Ruben B/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15082Fri, 12 Apr 2019 12:21:55 +0000/?p=4445#comment-15082In reply to Anil.

It’s in the article. You need an interceptor to add ‘withCredentials: true’ to the request.

Like

]]>
By: Ruben B/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15081Fri, 12 Apr 2019 12:19:43 +0000/?p=4445#comment-15081In reply to chintan.

You need to allow anonymous access on your API in general (not on the controllers/end points) because OPTIONS requests will be sent and they don’t pass authentication information.

Like

]]>
By: Anil/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-15080Fri, 12 Apr 2019 12:13:41 +0000/?p=4445#comment-15080Can you please tell me how to pass the windows credentials from angular to web api

Like

]]>
By: Anita Kamat/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-8305Wed, 27 Feb 2019 21:23:26 +0000/?p=4445#comment-8305on httppost: I keep getting this error “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:59366/api/todo/PostTodoItem. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)” httpget works fine. I have these setting “windowsAuthentication”: true, and“anonymousAuthentication”: true,

Like

]]>
By: shriram/2017/08/04/how-to-implement-windows-authentication-in-an-angular-4-3-1-application-with-a-stand-alone-web-api/comment-page-1/#comment-1237Thu, 03 Jan 2019 10:31:28 +0000/?p=4445#comment-1237after ng serve they have me the error,,,

Failed to load resource: the server responded with a status of 404 (Not Found)

Like

]]>