Hi,
This has been here week ago, we needed the grpc to be on the webgateway since we don't expose the microservices. Is there a backlog or a roadmap on abp dev team where we can possibly implement this later with abp?
Hi, Okay so I changed the gateway from Ocelot to Yarp but I have problems with authentication,
Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
if (Self._grpcChannel == null)
{
var grpcOptions = Self._serviceProvider.GetRequiredService<IOptions<GrpcServiceOptions>>().Value;
var userAccount = Self._serviceProvider.GetRequiredService<UserAccountSessionManager>();
var token = userAccount.AccessTokenInfo.AccessToken;
var credentials = CallCredentials.FromInterceptor((context, metadata) =>
{
if (!string.IsNullOrEmpty(token))
{
metadata.Add("Authorization", $"Bearer {token}");
}
return Task.CompletedTask;
});
Self._grpcChannel = GrpcChannel.ForAddress(grpcOptions.GrpcServiceUri, new GrpcChannelOptions
{
Credentials = ChannelCredentials.Create(new SslCredentials(), credentials)
});
}
return Self._grpcChannel;
Hi, I think it was not related to my case, basket service is just another service that acts as a client that requests to catalogservice. My question is related to gateway, I wanted the client to only call request into a single url or the url of webgateway proxy that routes the request to the grpc server hosts (these hosts are containerized and is inside a private network). The microservice service template project is using ocelot.
Need help on how to implement grpc for a microservice solution. I followed the article here: https://community.abp.io/posts/using-grpc-with-the-abp-framework-2dgaxzw3 but this was for a single-layer application project.
We have multiple host services running and each have a different port for gRPC, how can I configure to forward them in the WebGateway project?
Yeah I asked him it was working on his machine but not mine 🤔, we checked the same commit.
Hi, I sent it through your email.
Hi,
I did not change the generated client proxy's namespace.
Hi, I tried again just now, it's still showing the same error.