Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
- ABP Framework version: v7.0.2
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or OpenIddict Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
(projects are made in community version)
- I am using distributed identity management(OpenIddict)
- Connecting via ocelot gateway
- The permissions of the A service are written to the administration service via rabbitmq.
- Using the A service via ocelot (RemoteService(ocelot))
error: When I authorize a method in A service I get error 403 because admin user can't have permissions of A service
A service
(AdministrationService Database)

How can i solve this problem?
23 Answer(s)
-
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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?
OnPostApplicationInitializationmethod'unda DataSeedContributor'ı mı çalıştırıyorsunuz (auto-migration)? DbMigrator mı kullanıyorsunuz?Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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?
OnPostApplicationInitializationmethod'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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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?
OnPostApplicationInitializationmethod'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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
galip.erdem@volosoft.com a zoom davetiyesi gönderir misiniz? TR saati ile 17:00’den sonra mümkünse.
Toplantı kimliği mailinize gönderilmiştir. Görüşmek üzere
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
@gterdem merhabalar Cuma günü görüşmemizde tavsiye ettiğiniz çözüm yolunu denedik ama bir çözüme ulaşamadık kendimiz farklı bir yöntem denedik başarılı olduk gibi gözüküyor ama kafamızda bazı soru işaretleri oluştu dün mail oluşturduk yoğunluktan görememiş olabilirsiniz müsait olduğunuz bir zaman dilimde bize zamanı belirtirseniz zoom üzerinden bir görüşme ile bu yapıyı size anlatmak isteriz geri dönüşünüze göre zoom toplantısi oluşturup size atabilirim. Geri dönüşlerinizi bekliyorum
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)