error: When I authorize a method in A service I get error 403 because admin user can't have permissions of A service
Putting aside how you write the permissions to AdministrationService, is the problem related to admin user is granted by default with the seeded(?) new permissions?
How do you seed the permissions of Service A? Is it auto-migration (seeding DataSeedContributor on
OnPostApplicationInitialization
)? DbMigrator?
Permission'ların AdministrationService'e nasıl yazıldığını bir kenara bırakırsak, admin kullanıcısının default olarak neden yeni yazılan permission'lara sahip olmadığını mı soruyorsunuz tam olarak?
Service A permission'ları nasıl yazıyorsunuz?
OnPostApplicationInitialization
method'unda DataSeedContributor'ı mı çalıştırıyorsunuz (auto-migration)? DbMigrator mı kullanıyorsunuz?Hi merhabalar public async Task HandleEventAsync(PermissionChangedEto eventData)
{ var abpUnitOfWorkOptions = new AbpUnitOfWorkOptions { IsTransactional = true }; using var uow = _unitOfWorkManager.Begin(abpUnitOfWorkOptions, true); PermissionChangedEto newData = new PermissionChangedEto(); newData.Name = eventData.Name; var config = new MapperConfiguration(cfg => cfg.CreateMap<PermissionChangedEto, PermissionGrant>().ReverseMap()); var mapper = new Mapper(config); var permission = newData.Name; await _permissionDataSeeder.SeedAsync( RolePermissionValueProvider.ProviderName, "admin", permission ); await uow.CompleteAsync(); }`
` dbmigratoru kullanmıyorum ama dataSeeder ile yazdırıyorum
I'm not using dbmigrator but writting with dataSeeder
@gterdem isterseniz zoom üzerinde yapıyı daha ayrıntılı bir şekilde anlatabilirim. If you want, I can explain the structure in more detail on zoom.
error: When I authorize a method in A service I get error 403 because admin user can't have permissions of A service
Putting aside how you write the permissions to AdministrationService, is the problem related to admin user is granted by default with the seeded(?) new permissions?
How do you seed the permissions of Service A? Is it auto-migration (seeding DataSeedContributor on
OnPostApplicationInitialization
)? DbMigrator?
Permission'ların AdministrationService'e nasıl yazıldığını bir kenara bırakırsak, admin kullanıcısının default olarak neden yeni yazılan permission'lara sahip olmadığını mı soruyorsunuz tam olarak?
Service A permission'ları nasıl yazıyorsunuz?
OnPostApplicationInitialization
method'unda DataSeedContributor'ı mı çalıştırıyorsunuz (auto-migration)? DbMigrator mı kullanıyorsunuz?
Hi merhabalar public async Task HandleEventAsync(PermissionChangedEto eventData)
{
var abpUnitOfWorkOptions = new AbpUnitOfWorkOptions { IsTransactional = true };
using var uow = _unitOfWorkManager.Begin(abpUnitOfWorkOptions, true);
PermissionChangedEto newData = new PermissionChangedEto();
newData.Name = eventData.Name;
var config = new MapperConfiguration(cfg => cfg.CreateMap<PermissionChangedEto, PermissionGrant>().ReverseMap());
var mapper = new Mapper(config);
var permission = newData.Name;
await _permissionDataSeeder.SeedAsync(
RolePermissionValueProvider.ProviderName,
"admin",
permission
);
await uow.CompleteAsync();
}`
` dbmigratoru kullanmıyorum ama dataSeeder ile yazdırıyorum
I'm not using dbmigrator but writting with dataSeeder
@gterdem merhaba Yardımlarınızı bekliyorum :)
You can explain your details in Turkish before this
ok thank you
hi @firatm
You can explain the design of your microservice solution in the Turkish language.
Please explain in detail the dependencies of your solution.
@gterdem will reply to you.
thank you the meeting will be with zoom again, right?
hi
I can't run the project you shared, and it's not a complete project, can you think of a way to reproduce the problem in a template project?
I think it might be a problem with module dependencies
hi the project is working in my local, if you want, you can look at the problem with a zoom meeting
hi
Can the template project be reproduced? Or just your project?
can not be reproduced i will send my project
Even if the problem is reproduced remotely, I still need to reproduce and check it locally.
ok if you send me an e-mail i can share the project
hi
Can the template project be reproduced?
zoom meeting would be better :)
hi
How can we simply reproduce your issue?
I can share the source code with you or we can meet on zoom