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

Activities of "gjubber"

Question

Hi,

Hope you are well.

We want to implement dynamic permissions within our application and I wanted to find out if this is possible and/or if you can share any resources of how one could achieve this?

The scenario:

When adding a specific entity (eg. Category), we want to dynamically create a permission associated with this specific entity.

With a "normal" implementation, we would create the entity and "manually" create permissions for CRUD operations of the entity in the AppAuthorizationProvider. However, we want to give the users the ability to create/update/delete their own "categories", but we still want to associate permissions with that "category" in order to manage who will be able to use that "category".

I have found the following blog posts, but the examples mentioned is not 100% clear:

  • https://support.aspnetzero.com/QA/Questions/12245/Dynamic-Permission
  • https://support.aspnetzero.com/QA/Questions/12214/Add-a-new-permission-from-the-database-in-SetPermissions-method-in-the-AppAuthorizationProvidercs
  • https://support.aspnetzero.com/QA/Questions/11619/ChangeAddRemove-Role-Permission-Tree-Root-Menu-Item-Dynamically

Any assistence with regards to this question is much appreciated.

Kind regards, Robert

Hi support,

We are using the following setup: Project Type ASP.NET CORE & Angular (single solution)

Framework .NET Core 3.1

Version v9.1.0

This is an odd issue. I am unable to replicate on my local environment but in both our production and dev instances (Hosted on IIS) the following is occuring:

  1. Change the default language in Host from English to English(UK)

  2. If a user tries to change their language to English(UK) from English the page refreshes and the language does not change

  3. The following log entries appear

WARN 2021-11-19 08:26:48,672 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Authorization.Roles.RolePermissionSetting' in localization source WARN 2021-11-19 08:26:48,682 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.MultiTenancy.TenantFeatureSetting' in localization source WARN 2021-11-19 08:26:48,682 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Application.Features.EditionFeatureSetting' in localization source WARN 2021-11-19 08:26:48,683 [46 ] naries.DictionaryBasedLocalizationSource - Can not find 'Abp.Configuration.Setting' in localization source

Any idea what could be causing this?

Prerequisites

  • Using version 8.9.2
  • Angular
  • net core 3.1

Issue

Please note, the following does not happen on my development environment

After I have deployed the code to the development environment, I would expect the default login URL to be (as it's been on various other implementations):

https://<domain>/account/login

But it keeps opening the following:

https://<domain>/Ui/Login

Furthermore, once I eventually worked around the login issue and finally get to the app, where I can create a role for example, I am confrusted with the following error when trying to POST or PUT any data

ERROR 2020-08-24 07:05:40,637 [40   ] idateAntiforgeryTokenAuthorizationFilter - The required antiforgery header value "X-XSRF-TOKEN" is not present.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "X-XSRF-TOKEN" is not present.
   at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
   at Abp.AspNetCore.Mvc.Antiforgery.AbpValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)

Why is it navigating to https://<domain>/Ui/Login. Identity server is not being utilised and I have no idea why it's pointing to the controller/view

Any help would be greatly appreaciated!! Kind regards

To whom this may concern,

Is there any documenation or tools, that can assist us in upgrading our previous version (v5.5.0) of AspNetZero, to the latest version (v8.0.0). Alternatively, is there any advice you guys can provide us on how to go about this.

Many thanks in advance! Kind regards, Richard Bailey

Question

Hi,

Can someone please assist me with downloading a new project? I have bouth a new one, but our download limit remains?

Thanks

Joe van der Walt

Showing 1 to 5 of 5 entries