Custom Authentication
Integrate a host-provided ASP.NET Core authentication scheme with Elsa API permissions.
Register the host scheme
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddAuthentication("CompanyScheme")
.AddScheme<AuthenticationSchemeOptions, CompanyAuthenticationHandler>(
"CompanyScheme",
_ => { });
builder.Services.AddAuthorization();
builder.Services.AddElsa(elsa =>
{
elsa
.UseWorkflowManagement()
.UseWorkflowRuntime()
.UseWorkflowsApi();
});
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.UseWorkflowsApi();
app.Run();Map Elsa permissions
Configure Studio separately
Keep workflow ingress separate
Validation checklist
Last updated