# CommunityToolkit.Aspire.Hosting.Logto

- Module: `CommunityToolkit.Aspire.Hosting.Logto`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `14`
- Types: `3`

## Handles

- [LogtoResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- `handle` - 18 members -- Represents a containerized resource specific to Logto that extends the base functionality of container resources by providing additional endpoint and connection string management.
- [PostgresServerResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/postgresserverresource.md) -- `handle` - 0 members
- [RedisResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/redisresource.md) -- `handle` - 0 members

## Functions

- [AddLogto](/reference/api/go/communitytoolkit.aspire.hosting.logto/addlogto.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Logto resource to the Aspire distributed application by configuring it with the specified name, associated PostgreSQL server resource, and database name.
- [WithAdminEndpoint](/reference/api/go/communitytoolkit.aspire.hosting.logto/withadminendpoint.md) -- `method` - on `LogtoResource` -- Configures the specified Logto resource to include an administrative endpoint with the given URL.
- [WithDatabase](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdatabase.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to connect to the specified PostgreSQL database.
- [WithDatabaseSeeding](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdatabaseseeding.md) -- `method` - on `LogtoResource` -- Starts Logto by running the database seed command before the application process.
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdatabindmount.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to use a data bind mount with the specified source directory.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdatavolume.md) -- `method` - on `LogtoResource` -- Configures the Logto resource with a data volume, allowing persistent storage.
- [WithDeprecationTracing](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdeprecationtracing.md) -- `method` - on `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](/reference/api/go/communitytoolkit.aspire.hosting.logto/withdisableadminconsole.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to disable the Admin Console port.
- [WithNodeEnv](/reference/api/go/communitytoolkit.aspire.hosting.logto/withnodeenv.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
- [WithRedis](/reference/api/go/communitytoolkit.aspire.hosting.logto/withredis.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to use a specified Redis resource for caching or other functionality.
- [WithResourcePort](/reference/api/go/communitytoolkit.aspire.hosting.logto/withresourceport.md) -- `method` - on `LogtoResource` -- Configures HTTP endpoints for the given Logto resource builder with specified port settings.
- [WithSecretVault](/reference/api/go/communitytoolkit.aspire.hosting.logto/withsecretvault.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).
- [WithSensitiveUsername](/reference/api/go/communitytoolkit.aspire.hosting.logto/withsensitiveusername.md) -- `method` - on `LogtoResource` -- Specifies whether the username is case-sensitive.
- [WithTrustProxyHeader](/reference/api/go/communitytoolkit.aspire.hosting.logto/withtrustproxyheader.md) -- `method` - on `LogtoResource` -- Configures the Logto resource to enable or disable the trust proxy header behavior.
