clean-architecture-dotnet icon indicating copy to clipboard operation
clean-architecture-dotnet copied to clipboard

Setup Dapr OAuth 2.0 with identityserver

Open thangchung opened this issue 3 years ago • 0 comments

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)));

thangchung avatar Jul 29 '21 14:07 thangchung