mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-10 17:15:16 -05:00
Code style cleanup
This commit is contained in:
@@ -12,21 +12,21 @@ builder.Services.AddElsa(elsa =>
|
||||
// Configure management feature to use EF Core.
|
||||
elsa.UseWorkflowManagement(management => management.UseEntityFrameworkCore(ef => ef.UseSqlite()));
|
||||
|
||||
elsa.UseWorkflowRuntime(runtime =>runtime.UseEntityFrameworkCore());
|
||||
|
||||
elsa.UseWorkflowRuntime(runtime => runtime.UseEntityFrameworkCore());
|
||||
|
||||
// Expose API endpoints.
|
||||
elsa.UseWorkflowsApi();
|
||||
|
||||
// Add services for HTTP activities and workflow middleware.
|
||||
elsa.UseHttp();
|
||||
|
||||
|
||||
// Configure identity so that we can create a default admin user.
|
||||
elsa.UseIdentity(identity =>
|
||||
{
|
||||
identity.UseAdminUserProvider();
|
||||
identity.TokenOptions = options => options.SigningKey = "secret-token-signing-key";
|
||||
});
|
||||
|
||||
|
||||
// Use default authentication (JWT + API Key).
|
||||
elsa.UseDefaultAuthentication(auth => auth.UseAdminApiKey());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user