Hi,
We have an issue related to permissions management on our Blazor front.
How to reproduce :
Have a user connected with any permissions
Set a new role to the user with new permissions that grant access to a new menu, or the opposite (remove access to functions).
Have the user refresh the page. Issue 1 : permissions are not updated and does not have access to the new menus we granted him access to. Issue 2 : If permissions were removed, user can still call APIs that are locked behind said permissions.
Have the user disconnect and reconnect. Issue 1 persists (side menus are still hidden). I think we opened a ticket previously for this issue. It was solved in a preview version of LeptonX, which was removed from the NuGet repository. We are now waiting for the final fix that comes out with ABP 7.3. Issue 2 is solved.
ABP Framework version: v7.2.3
UI type: Blazor
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): Idenity Server Separated
Exception message and stack trace:
17 Answer(s)
-
0
hi
You can try these PRs
Blazor WASM https://github.com/abpframework/abp/pull/16602
MVC & Blazor Server https://github.com/abpframework/abp/pull/16504
-
0
Hi @maliming but how can I use a PR of ABP Framework within my Abp Commercial Solution in which ABP is referenced via nuget package?
-
0
You can copy code from the pr and call it in your project.
-
0
That is, I should clone ABP (framework) with the indicated PR and then from the ABP Commercial Solution remove the ABP packages and point directly to the local version DLLs built by the PR. Is it correct?
The ABP Commercial PRO modules, of which I don't have the sources, that point to ABP's nuget packages will have no problems?
Thanks for your answer
-
0
hi
There are only a few classes. You just need to copy these classes to your project.
https://github.com/abpframework/abp/pull/16504/files
-
0
I'll try, but I think I'll get a warning like https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs0436?f1url=%3FappId%3Droslyn%26k%3Dk(CS0436)
Thanks
-
0
hi
Can you share the error code screenshot?
-
0
Hi Maliming, Just to clarify that Roberto is not part of our team and that he is asking about a separate problem in this thread. We are getting notified for it and it is confusing. I don't think we need to ask Roberto to create a separate issue but I will leave the decision up to you.
-
0
Sorry for that @pierremih
hi @roberto.fiocchi@mcsi.it you can consider creating a new question. Thanks
-
0
Hi @maliming We updated to ABP 7.3, which includes the PR you linked. Can you confirm that point. The issue hasn't been solved and persists.
-
0
hi pierremih
Blazor wasm or blazor server?
-
0
It's blazor server
-
0
ok, I will confirm that.
-
0
hi
The
ApplicationConfigurationDtoCacheAbsoluteExpiration
ofAbpAspNetCoreMvcClientCacheOptions
is 300 seconds by default.You can consider changing it to shorter. eg: 3 seconds.
-
0
Interesting, we will try that
-
0
ok
-
0