Starts in:
2 DAYS
0 HR
48 MIN
3 SEC
Starts in:
2 D
0 H
48 M
3 S

Activities of "Spospisil"

Answer

Thank you. That resolved the issue.

Answer

Hi,

Truly, it would be a lot quicker if you could produce a working sample of vs me trying to scale back my enterprise level application and all it's source code.

Could you please provide a sample based on blazor WASM tiered, etc?

Thanks.

Answer

Hi,

Is this the only thing I need to do to the code in order to get this to work? I keep getting the following message.

"Unhandled exception rendering component: The AuthorizationPolicy named: 'TenantPolicy' was not found."

private static void ConfigureAuthorization(ServiceConfigurationContext context)
{
    context.Services.AddAuthorization(options =>
    {
        options.AddPolicy("TenantPolicy", policy =>
        {
            policy.RequireAuthenticatedUser().RequireAssertion(handlerContext =>
            {
                var tenantId = handlerContext.User.FindTenantId();
                Console.WriteLine($"****** TenantId: {tenantId} ******");
                return false; // false to skip
            });

        });
    });
}
Question
  • ABP Framework version: v7.3.2
  • UI Type: Blazor WASM
  • Database System: EF Core/PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

I want to be able to add a line of code (similar to below) to the top of every page that would only be available to a tenant without having to add a abp 'permission' or 'feature' definition but rather would pass the authorize test based on whether the current user's tenent id is null or not.

How can this be done in ABP?

@attribute [Authorize(TenantUser)]

  • ABP Framework version: v7.2.2
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Is there anyway to create Domain Entity classes from an existing database in ABP suite in bulk vs selecting them one at a time from ABP Suite? I have over 1000 tables in my DB I need to generate domain entities for.

Thanks.

Answer

I need an update on this please

Answer

I'm a little confused. Are you saying I have to manually show/hide the indicator on every page I want this indicator? According to ABP's documentation I shouldn't have to.

"By default you don't need to do anything to show the progress indicator, as all the work is done automatically by the ABP Framework internals. This means that all calls to the ABP backend (through your HTTP API) will activate page progress and show the loading indicator."

<br>

Question
  • ABP Framework version: v7.3.0
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

I have been unable to get the page progress indicator to show in my Blazor WASM application. This link (https://docs.abp.io/en/abp/latest/UI/Blazor/Page-Progress) says that it's built in by default but I see no indicator that shows when going from page to page even in the ABP module UI's themselves.

Thanks.

  • ABP Framework version: v7.3.0
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Tiered/Separated Auth Server: Yes

Hi,

I am trying to override the standard email confirmation link that gets sent Account.Pro.Public ABP module. Following the documentation (https://docs.abp.io/en/abp/7.3/Text-Templating-Scriban) I added the .tpl file to my application.contracts project under the Emailing/Templates folder and then specificed a TemplateDefinitionProvider class to get the email confirmation definition and change it's virtual file path to where I have my custom .tpl file.

When the email gets rendered it's giving me a 'Volo.Abp.AbpException: Could not find a file/folder at the location: /Emailing/Templates/EmailConfirmationLink.tpl' error. The EmailConfirmationLink.tpl file is set to be an embedded resource and my ApplicationModule class has the configuration of the virtual file system.

Any suggestions would be helpful.

public class EmailTemplateDefinitionProvider : TemplateDefinitionProvider, ITransientDependency { public override void Define(ITemplateDefinitionContext context) { var emailNewUserConfirmation = context.GetOrNull(AccountEmailTemplates.EmailConfirmationLink);

    emailNewUserConfirmation
            .WithVirtualFilePath(
                "/Emailing/Templates/EmailConfirmationLink.tpl",
                isInlineLocalized: true);

}

}

public override void ConfigureServices(ServiceConfigurationContext context) { Configure&lt;AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded&lt;xxxxxxApplicationContractsModule>(); }); }

Thank you. That was the solution to my issue.

Showing 31 to 40 of 280 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06