Activities of "brad"

Hi, In fact,the question is , we have many subsystems and UIs of these subsystems usually update frequently. So we don't want to unite all UI to one main host program,which leads to a bad user`s exprience.For this reason,we design a portal which is an entrance of all subsystems and show links of subsystems.

We wonder to how to get roles and permissions from central auth server,not like ABP microservices template which unite all microservice UI to one Main host.That is not what we want.

Answer

Hi, I do not think it is a problem.My question is how to edit or delete a permission of microservice.I could not find any information in docs.I have tried to edit the permission in PermissionProvider, or delete the permission,but the permission still stay in permission database and show in permission Manager UI.So I want to know how to update or delete the permissions which are stored in database.BTW I do not want do it in database directly.

Answer

Hi, We got a new question.How to update or delete the permission in microservice?We have tried to edit the permission in code,but nothing happened,it added a new permisson.

Answer

Thanks for your advice.It is exactly as you said.So does it mean that I add some permissons which will be stored in permission database automatically?

Question
  • ABP Framework version: v7.0.0

  • UI type: Blazor Server

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace: We found that there is no difference between v6.0 and v7.0 about dynamic permission.We want to know how to add a service into microservices through dynamic permission, as you have published in v7.0.But we could not find useful information about sepatated permission service.It still use v6.0 style to add new service , need to integrate the contract layer into Administrator service.

  • Steps to reproduce the issue:"

ABP Framework version: v6.0.0

UI type: Blazor Server

DB provider: EF Core /SqlServer

Tiered (MVC) or OpenIDDict : yes

Exception message and stack trace:

Failed to validate the token. Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'. at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() 2022-10-31 17:08:12.592 +08:00 [INF] Bearer was not authenticated. Failure message: IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'. 2022-10-31 17:08:12.755 +08:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2022-10-31 17:08:12.788 +08:00 [INF] Route matched with {area = "abp", action = "Get", controller = "AbpApplicationConfiguration", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto] GetAsync() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController (Volo.Abp.AspNetCore.Mvc). 2022-10-31 17:08:12.859 +08:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. 2022-10-31 17:08:14.461 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto'. 2022-10-31 17:08:14.523 +08:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 1727.5795ms 2022-10-31 17:08:14.524 +08:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2022-10-31 17:08:14.562 +08:00 [INF] Request finished HTTP/1.1 GET http://172.16.10.210:44367/api/abp/application-configuration?api-version=1.0 - 0 - 200 - application/json;+charset=utf-8 9070.7801ms

We got a similar problem,refresh does`nt work.

Showing 1 to 6 of 6 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11