Setup Dapr OAuth 2.0 with identityserver
thangchung opened this issue · 0 comments
thangchung commented
Right now, we don't authentication the between Dapr sidecar and the application itself
Look at it:
// Dapr pubsub
app.MapPost("/CustomerCreated", (CustomerCreatedIntegrationEvent @event) =>
{
Console.WriteLine($"I received the message with name={@event.GetType().FullName}");
return Ok("Subscribed");
}).WithTopic("pubsub", "CustomerCreatedIntegrationEvent");
// Dapr cron job binding
app.MapPost("/ProductOutboxCron", async (ITxOutboxProcessor outboxProcessor) =>
await outboxProcessor.HandleAsync(typeof(CoolStore.IntegrationEvents.Anchor)));