Activities of "balessi75"

Thanks @maliming

That looks good as far as the correct tenant data is shown in each page, but I noticed that the tenant name next to the user name on the upper right of the screen still doesn't show (Lepton theme - tenant\user).

Any thoughts on that?

Hi @maliming

I was able to recreate the problem with a brand new templated ABP project at version 7.0.1 (Blazor Server).

Steps to reproduce;

  1. Add the following to appsettings.json
"Azure": {
    "SignalR": {
      "ConnectionString": "connection string I emailed you yesterday"
    }
  }
  1. Add the latest Microsoft.Azure.SignalR package reference to the Blazor project
  2. Add the following to the end of ConfigureServices
public override void ConfigureServices(ServiceConfigurationContext context)
{
    ...
    context.Services.AddSignalR().AddAzureSignalR();
}
  1. Login as the host and create a role called "Host Role"
  2. When logged in as the host, create a tenant
  3. Login as the tenant and go to the role page and you'll see that your logging into the host's data (seeing the "Host Role")
  4. Comment out context.Services.AddSignalR().AddAzureSignalR(); and then login as the tenant and you'll now be properly logged into the tenant

Logged in as Host

Logging in as Tenant

Logged in as Tenant - seeing host data and no tenant indicator on upper right of screen

I found this from 4 months ago https://support.abp.io/QA/Questions/4376/Permissions-not-working-with-Azure-SignalR-Service

Was there ever a resolution to this issue?

This appears to be the same kind of issue. We see the azure signalr connection taking place, but the abp menu/permission is all pointing to the host , even though we are logging into a particular tenant.

Also, the app doesn't need to be deployed to Azure to see the issue. The issue happens in local development when we have the signalR connection string defined in secrets.json.

Hi,

That's strange, I don't get the error An error has occurred. This application may no longer respond until reloaded. Reload

I just get an empty menu on the left with no tenant designator in the upper right next to the user name.

Which URL were you getting that with, the demo.dev or demo.qa URL?

I added to the problem url (demo.qa) in program.cs

services.AddServerSideBlazor().AddCircuitOptions(e=> {
        e.DetailedErrors = true;
    });

and redeployed to the problem URL demo.qa (URL with the SignalR service turned on) and I don't see any errors in the logs or in the browser tools. I just emailed you the full log after the redeploy.

Here is a comparison of the browser console ....

demo.dev url with no SignalR service enabled - works perfectly fine:

demo.qa url with SignalR service enabled - does not work:

hi

Can you share an online URL so I can test it?

I sent you a private email with a URL and credentials.,

Thanks

The issue was resolved once using https.

Thanks

HI @liangshiwei

Thank you. I'm waiting for our TLS certs to be issued and I expect the issue(s) to be resolved once we are running https.

I'll follow up and confirm the resolution soon...

Update:

When we run the deployed application using Azure App Service's default URL.. {appname}.azurewebsites.net... everything works fine.

However, for production, we need to map the {appname}.azurewebsites.net URL to a different production URL using DNS and Azure's Application Gateway service.

We receive the errors only when accessing the production mapped URL.

Our app works as expected in every way under the production URL, except for the saving of a user's profile (My Account).

Is there an override or workaround?

Thanks in advance.

Thanks!

Hi @liangshiwei

Thank you for taking the time to setup the scenario!

The problem was that I didn't override the obsolete non-async version of the Resolve method.

I'll close the issue.

Showing 71 to 80 of 149 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30