Hello. I hope this is correct place where to send bugs with Studio. Since update to 1.4.0 (and also 1.4.1) I'm missing vertical scrollbar in Solution Runner (Applications). Thank you for returning it back.
Hello maliming,
our Controllers in HttpApi project looks like this:
[RemoteService(Name = ServiceARemoteServiceConsts.RemoteServiceName)]
[Area(nameof(ServiceA))]
[ApiController]
[Route("api/service-a/addresss")]
public class AddressController : ServiceAController, AppServices.ServiceA.IAddressAppService
{
private readonly AppServices.ServiceA.IAddressAppService _addressAppService;
public AddressController(AppServices.ServiceA.IAddressAppService addressAppService)
{
_addressAppService = addressAppService;
}
...
}
and
[RemoteService(Name = ServiceARemoteServiceConsts.RemoteServiceName)]
[Area(nameof(ServiceB))]
[ApiController]
[Route("api/service-b/addresss")]
public class AddressController : ServiceAController, AppServices.ServiceB.IAddressAppService
{
private readonly AppServices.ServiceB.IAddressAppService _addressAppService;
public AddressController(AppServices.ServiceB.IAddressAppService addressAppService)
{
_addressAppService = addressAppService;
}
...
}
we want to achive that if we make changes only in (for example) ServiceB we're generating (static proxies) just for ServiceB (abp generate-proxy -m ServiceB -t csharp -u https://localhost:44444/ --without-contracts) and because we know that we're not changing anything for ServiceA it's not necessary to generate proxies for it.
We're not satisfied with your AI answer because that means that we should have section RemoteService in ServiceA for ServiceB and that's oposite to what we want to achive. We think that ServiceB should know about ServiceA but not another way.
Thank you.
Hello, I found a problem what was in our shared project where was setting about AdministrationService etc. Sorry and thank you for your asistance! Everything works fine now.
I found out that if I call api/abp/application-configuration endpoint on my MediaService (with mentioned auth token) I get:
"auth": {
"grantedPolicies": {
}
},
but if I call same endpoint (with same auth token) on DatabaseService I get:
"auth": {
"grantedPolicies": {
...
"FileManagement.DirectoryDescriptor": true,
"FileManagement.DirectoryDescriptor.Create": true,
"FileManagement.DirectoryDescriptor.Update": true,
"FileManagement.DirectoryDescriptor.Delete": true,
"FileManagement.FileDescriptor": true,
"FileManagement.FileDescriptor.Create": true,
"FileManagement.FileDescriptor.Update": true,
"FileManagement.FileDescriptor.Delete": true
}
so there must be problem that my MediaService cannot reach my AdministrationService what is handling permissions. But if I compare my appsettings.json in both services they looks similar (in auth parts). Can you please show me what part of code is telling microservice to use Administration service for Permissions handling?
DependsOn:[DependsOn(
typeof(MediaServiceDomainSharedModule),
typeof(AbpDddApplicationContractsModule),
typeof(AbpAuthorizationModule),
typeof(FileManagementApplicationContractsModule)
)]
public class MediaServiceApplicationContractsModule : AbpModule
{
}
Correct Permission Assignment in OpenIddictDataSeeder is correct because I'm using same constants.MediaService should be configured to use the AdministrationService for permission management ? That's maybe point what I have not set up correctly but I cannot find documentation for that.Thank you