Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "mahendra"

Answer

Hi,

I am not sure the fix that I did is correct or not. I followed the fix as per below and it seems to be fixed. Please confirm if this fix is OK?

https://support.aspnetzero.com/QA/Questions/6120

Regards, Mahendra

Answer

Dear Expert,

Please help me on this please. We need to go live and without the resolution of this pronlem we cant go live.

Regards, Mahendra

Answer

Hi ismcagdas,

I already have that setting (No slash at the end). See the screen shot below: In fact, I tried both with and without slash (/) at the end of the URLs. Client Settings

Server Settings:

And this is the login page coming on tenant URL: (You can try this URL yourself) https://acme.ivendweb.com

Now if log in using “acme” to my swagger and call the API “/api/services/app/Session/GetCurrentLoginInformations”, I get the tenant information.

I am totally lost now. What is wrong where, I am not able to figure out. Please help.

Regards, Mahendra

Answer

Can anyone please assit me on this.... On first browse of the site using tenancy name (e.g. acme.ivendweb.com), it does not resolve the tenant and shows the login page with the link "New Tenant"....

Regards, Mahendra

Answer

Basially the problem is;

if I browse the site using tenancy name say acme.ivendweb.com, the login page that is getting displayed shows a link "New Tenant" as if there are no tenant called "acme".

But surprisingly if I login to host and then go to tenant management and then select the tenant "acme" and say login as this tenant the system enters into the acme tenant. Now if I logout and then again browse the site saying acme.ivendweb.com then the login page shows the link "New Account" as if it found the tenant.

So the question is first time why it did not recognize the tenant?

Regards, Mahendra

No, We have not written any custom filter.

Could you please guide us how can we debug this issue.

Kind Regards

Hi,

How can I share the page code ? The page code is very lengthy and I cannot paste the whole code here. Is there any other alternative.

Answer

Hi,

This has been fixed... I saw one of your support ticket having same problem (the bearer token was not getting passed in the request) So I added the HttpInterceptor in our module and it started getting called.

Regards, Mahendra

Answer

I had changed the startup as you suggested in your last email...

        ...............
        ...............
        app.UseAuthentication();
        //app.UseAuthorization();
        app.UseJwtTokenMiddleware();

        if (bool.Parse(_appConfiguration["IdentityServer:IsEnabled"]))
        {
            //app.UseJwtTokenMiddleware("IdentityBearer");
            app.UseIdentityServer();
        }

        app.UseAuthorization();
        ...............
        ...............
Answer

Hi,

I am using ASPNetZero 8.0 with angular. I created a duplicate of

Web.Host\Controllers\UsersController.cs and Web.Core\Controllers\UsersControllerBase.cs

and created the following

Web.Host\Controllers\ImportExportController.cs and Web.Core\Controllers\ImportExportControllerBase.cs

The issue, I am facing is: If I have following attribute on an action in the Web.Host\Controllers\ImportExportController.cs [AbpMvcAuthorize(AppPermissions.Pages_Administration_Users_Create)]

My action never gets called and get the following error in Chrome developer console. GET http://localhost:22742/Account/Login?ReturnUrl=%2FImportExport%2FImportFromExcel 404 (Not Found) ERROR HttpErrorResponse {headers: HttpHeaders, status: 404, statusText: "Not Found", url: "http://localhost:22742/Account/Login?ReturnUrl=%2FImportExport%2FImportFromExcel", ok: false, …}

But if I don't have the above attribute then the action gets called. But in this case I always get AbpSession.UserId as null.

Please help

Regards, Mahendra

Showing 101 to 110 of 123 entries