When I try to download latest angular and aspnet core 2.1 version 6.0.0 windows defender blocks the download with the following error
Name: Trojan:Win32/Sprisky.U!cl ID: 2147719836 Severity: Severe Category: Trojan Path: containerfile:_C:\Users\user1\Downloads\Suite.zip; file:_C:\Users\user1\Downloads\Suite.zip->Suite/aspnet-core/AspNetZeroRadTool/AspNetZeroRadTool.dll; webfile:_C:\Users\user1\Downloads\Suite.zip|https://aspnetzero.com/Download/CreateProject|pid:10876,ProcessStart:131831081057788935 Detection Origin: Internet
"Does "Some Client" have an authentication token ? "
Yes the client is the one using Angular app which is authenticated through AspNetZero. I think you didn't understand what I am trying to achieve. Let me try again to explain it. I have my AspNet Zero app (.net core plus angular 2) under <a class="postlink" href="http://www.mydomain.com">http://www.mydomain.com</a> . When I login I suppose the client receives a token and get some permissions. Based on these permissions the side menu is built up. One of the menu links points to a 3rd part microservice (<a class="postlink" href="http://www.microa.com">http://www.microa.com</a>). When the user clicks on that link I send an Http request to <a class="postlink" href="http://www.microa.com">www.microa.com</a>. This MicroA service needs to see if the user is authenticated and if it is if he has the permission. I cant reference any code from Abp because the microa.com is a java service or python, nodejs etc. So once microA receives the request from client (with the token received previously from <a class="postlink" href="http://www.mydomain.com">www.mydomain.com</a>) <a class="postlink" href="http://www.microa.com">www.microa.com</a> calls <a class="postlink" href="http://www.mydomain.com">www.mydomain.com</a> and forwards the token. <a class="postlink" href="http://www.mydomain.com">www.mydomain.com</a> receives the token checks if it is authenticated and if it is returns also back the permissions of that client. microA receives the response from <a class="postlink" href="http://www.mydomain.com">www.mydomain.com</a> and if it is not authenticated or not have permission to use this service it sends back to the client 401 or if client is A&A microA proceed with the initial request and returns back the result to client. I think I cannot be more clear on this.
Thanks
alper I dont understand all this complexity you added. I think my requirement is pretty straightforward. Client instead of calling AspNetZero directly, is gonna call MicroA then that request will be routed to AspNetZero. My question is simple. Which url(s) of AspNetZero shall I call from MicroA to do that (I suppose it is gonna be the same that the client now calls directly to the AspNetZero. No custom development, no check whether the user is online. Just check whether the user is authenticated, check whether he is who he claims he is and some permission checking.
Thanks
Hi alper
The flow is as follows
Some Client ==> MicroService-A [<span style="color:#FF0000">forward request</span>] ==> AspNet Zero [checks, user authenticated and granted permission?] ==> MicroService-A ==> The Client
The problem is the communication from one service to another. How do I do that? Scenario is as follows I have Microservice A. Client sends a request to MicroServiceA. I want to check if that user is authenticated and if he is, I want to check if he has a specific permission. If he has he performs the operation of MicroServiceA. MicroserviceA receives the request from client and then sends a request to aspnetzero .net core. Aspnetzero .net core checks if that user is authenticated and checks specific permissions and reply back to MicroserviceA. MicroServiceA then replies back to client with 401 or proceeds with the user request
Hi, In order to do so I have to reference dlls from aspnetzero. I don't want to follow this approach because each microservice shouldn't be sharing code and referencing with another app and also my microservice is written in different language (java). Desirable behavior is to call aspnetzero core using Http and perform the task
Thanks
I am using aspnet core & angular. I have a a microservice that is using the angular app and I need to be able to check when a user sends a request to that service that he is authenticated and has permission to use that service. Based on my understanding the service can call the aspnet core and check this. Or am I wrong? Is there any example on how to achieve that?
Thanks
Hi,
When I press F5 again sometimes it loads sometimes the same problem. The problem occurs both when the user is logged in and logged out
Thanks
No. Browser is chrome. I tested it also on firefox and same problem
Hi,
I am still experiencing the problem.
I added a console debug log at the AbpHttpInterceptor
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
var interceptObservable = new Subject<HttpEvent<any>>();
var modifiedRequest = this.normalizeRequestHeaders(request);
next.handle(modifiedRequest)
.catch((error: any, caught: Observable<any>) => {
return this.handleErrorResponse(error, interceptObservable);
})
.subscribe((event: HttpEvent<any>) => {
let resp: any = event;
if (resp && resp.url)
{
console.debug("Code: " + resp.status + " - " + "Url: " + resp.url);
}
else
{
console.debug("Response is null in interceptor");
}
this.handleSuccessResponse(event, interceptObservable);
});
return interceptObservable;
}
and whenever the problem occurs I only see the following output in console without any errors but in the network tab of dev tools I can see that more requests are returned from the server with status 200 (GetAll, GetProfilePicture etc...)
Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
instead when the app loads without any issues I get:
Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Profile/GetProfilePicture
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/Profile/GetProfilePicture
abpHttpInterceptor.ts:248 Code: 200 - Url: http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers