Skip to content
DocsTry Aspire
DocsTry

LogtoBuilderExtensions

Classstaticnet10.0
📦 CommunityToolkit.Aspire.Hosting.Logto v13.4.1-beta.706
Provides extension methods for configuring and managing Logto resources within the Aspire hosting application framework.
namespace Aspire.Hosting;
public static class LogtoBuilderExtensions
{
// ...
}
AddLogto(IDistributedApplicationBuilder, string, IResourceBuilder<PostgresServerResource>, string, int?, int?)extensionats export
IResourceBuilder<LogtoResource>
Adds a Logto resource to the Aspire distributed application by configuring it with the specified name, associated PostgreSQL server resource, and database name.
WithAdminEndpoint(IResourceBuilder<LogtoResource>, string)extensionats export
IResourceBuilder<LogtoResource>
Configures the specified Logto resource to include an administrative endpoint with the given URL.
WithDatabase(IResourceBuilder<LogtoResource>, IResourceBuilder<PostgresServerResource>, string)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to connect to the specified PostgreSQL database.
WithDatabaseSeeding(IResourceBuilder<LogtoResource>)extensionats export
IResourceBuilder<LogtoResource>
Starts Logto by running the database seed command before the application process.
WithDataBindMount(IResourceBuilder<LogtoResource>, string)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to use a data bind mount with the specified source directory.
WithDataVolume(IResourceBuilder<LogtoResource>, string?)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource with a data volume, allowing persistent storage.
WithDeprecationTracing(IResourceBuilder<LogtoResource>)extensionats export
IResourceBuilder<LogtoResource>
Enables Node.js deprecation tracing for the Logto by setting the NODE_OPTIONS environment variable to '--trace-deprecation'. This allows stack traces to be printed for deprecated API usage.
WithDisableAdminConsole(IResourceBuilder<LogtoResource>, bool)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to disable the Admin Console port.
WithNodeEnv(IResourceBuilder<LogtoResource>, string)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
WithRedis(IResourceBuilder<LogtoResource>, IResourceBuilder<RedisResource>)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to use a specified Redis resource for caching or other functionality.
WithResourcePort(IResourceBuilder<LogtoResource>, int?, int?)extensionats export
IResourceBuilder<LogtoResource>
Configures HTTP endpoints for the given Logto resource builder with specified port settings.
WithSecretVault(IResourceBuilder<LogtoResource>, string)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).
WithSensitiveUsername(IResourceBuilder<LogtoResource>, bool)extensionats export
IResourceBuilder<LogtoResource>
Specifies whether the username is case-sensitive.
WithTrustProxyHeader(IResourceBuilder<LogtoResource>, bool)extensionats export
IResourceBuilder<LogtoResource>
Configures the Logto resource to enable or disable the trust proxy header behavior.
View all methods