Base solution for your next web application

Activities of "bomaint"

Hello,

I am experiencing a strange error when trying to log in with IE/Edge, in the UI nothing happens and when I look at the console I see a "Unexpected authenticateResult!". I put a breakpoint in "login.service.ts" inside the subscribe function of the authenticate call:

this._tokenAuthService
    .authenticate(this.authenticateModel)
    .finally(finallyCallback)
    .subscribe((result: AuthenticateResultModel) => {
    ->    this.processAuthenticateResult(result, redirectUrl);
    });

In Chrome the result is populated but in IE/Edge the result is empty (all properties are undefined). What I also saw is that in IE/Edge I see an additional GET call to <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> with remark "(from cache)". Looking at the timings it seems as if the GET (cache) call is fired at exactly the same time as the POST call and finishes (of course if it's really from cache) before the POST returns. This would explain why the result is empty if it is taken from some unknown cached result. I checked the headers and all the headers that should prevent caching have been applied:

Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-CH, en; q=0.5
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 153
Content-Type: application/json
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Host: localhost:22742
Origin: http://localhost:4200
Pragma: no-cache
Referer: http://localhost:4200/account/login
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
X-Requested-With: XMLHttpRequest

So why this cached GET? I am a bit lost, of course IE/Edge is the corporate default browser. Any ideas on what this could be?

Hello,

first of all: great work on ASP.NET Zero.

I am using the ASP.NET Core (.NetFramework) & Angular Template for an Intranet Web Application in a corporate environment and the idea is to use some kind of seamless Windows Authentication. What is currently the best way to achieve this with this template?

I searched the forum a bit and saw that there was support for federation services in earlier versions but that seems gone now. I also had a look at IdentityServer4 and while this seems like a possible approach, it also seems like it has beed added as an additional feature to use with external clients and not to replace the existing authentication structure (could not find anything related to IdentityServer4/OpenId in the Account/Login part of the Angular frontend and also the whole UI part for IdentityServer4 seems to be missing).

Any help or information would be very welcome on how I can achieve some kind of Windows Authentication with the least effort (and changes to existing code).

Thanks

Showing 1 to 2 of 2 entries