withPostgres

Method
📦 CommunityToolkit.Aspire.Hosting.Keycloak.Extensions v13.5.1-beta.895
interface KeycloakResource {
// ... omitted for brevity
withPostgres(
database: PostgresDatabaseResource,
username?: ParameterResource,
password?: ParameterResource,
xaEnabled?: boolean): KeycloakResource;
}

Signature

methodwithPostgresbuilder
withPostgres(
database: PostgresDatabaseResource,
username?: ParameterResource,
password?: ParameterResource,
xaEnabled?: boolean): KeycloakResource
databasePostgresDatabaseResourceThe resource builder for the Postgres database that Keycloak will connect to.
usernameParameterResourceoptional(Optional) The resource builder for the parameter defining the database username. If not provided, the parent database resource's username parameter will be used.
passwordParameterResourceoptional(Optional) The resource builder for the parameter defining the database password. If not provided, the parent database resource's password parameter will be used.
xaEnabledbooleanoptional= FalseA boolean flag indicating whether XA transactions are enabled. Defaults to false.
KeycloakResource

Applies to

This method applies to the following types: