Micronaut Multitenancy Configuration Reference

Every documented configuration property of Micronaut Multitenancy, with types, descriptions, and defaults.

Micronaut Multitenancy documentation

28 properties across 1 section

Micronaut Multitenancy Config Properties

Configuration properties for TenantResolverFilterConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.filter.enabledbooleanWhether TenantResolverFilter should be enabled. Default value (true).
micronaut.multitenancy.filter.regex-patternjava.lang.StringTenant Resolver filter processes only request paths matching this regular expression. Default Value: "^.*$"

Configuration properties for TenantPropagationConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.propagation.service-id-regexjava.lang.StringRegular expression to match service ID.
micronaut.multitenancy.propagation.uri-regexjava.lang.StringRegular expression to match URI.
micronaut.multitenancy.propagation.enabledbooleanWhether TenantPropagationHttpClientFilter should be enabled. Default value (false).
micronaut.multitenancy.propagation.pathjava.lang.StringConfigures TenantPropagationHttpClientFilter path. Default value "/**"

Configuration properties for CookieTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.cookie.enabledbooleanWhether to enable CookieTenantResolver . Default value (false).
micronaut.multitenancy.tenantresolver.cookie.cookienamejava.lang.StringCookie name which should be used to resolve the tenant id from. Default value ("tenantId").

Configuration properties for FixedTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.fixed.tenant-idjava.lang.StringThe fixed tenant ID. Default value to ("DEFAULT").
micronaut.multitenancy.tenantresolver.fixed.enabledbooleanEnables FixedTenantResolver . Default value (false).

Configuration properties for HttpHeaderTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.httpheader.enabledbooleanEnables HttpHeaderTenantResolver . Default value (false).
micronaut.multitenancy.tenantresolver.httpheader.header-namejava.lang.StringHttp Header name which should be used to resolve the tenant id from. Default value ("tenantId").

Configuration properties for PrincipalTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.principal.enabledbooleanEnables PrincipalTenantResolver . The default enable is false.

Configuration properties for SessionTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.session.enabledbooleanEnables SessionTenantResolver . The default value (false).
micronaut.multitenancy.tenantresolver.session.attributejava.lang.StringSession Attribute name. Default value ("tenantId")

Configuration properties for SubdomainTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.subdomain.enabledbooleanEnables SubdomainTenantResolver . Default value (false).

Configuration properties for SystemPropertyTenantResolverConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantresolver.systemproperty.property-namejava.lang.StringSystem property name. Default value ("tenantId").
micronaut.multitenancy.tenantresolver.systemproperty.enabledbooleanEnable SystemPropertyTenantResolver . Default value (false).

Configuration properties for CookieTenantWriterConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantwriter.cookie.enabledbooleanEnables CookieTenantWriter . Default value (false).
micronaut.multitenancy.tenantwriter.cookie.cookienamejava.lang.StringCookie Name. Default value ("tenantId").
micronaut.multitenancy.tenantwriter.cookie.cookie-domainjava.lang.StringSets the domain name of this Cookie. Default value ("tenantId").
micronaut.multitenancy.tenantwriter.cookie.cookie-pathjava.lang.StringSets the path of the cookie. Default value ("/".
micronaut.multitenancy.tenantwriter.cookie.cookie-http-onlybooleanWhether the Cookie can only be accessed via HTTP. Default value (true.
micronaut.multitenancy.tenantwriter.cookie.cookie-securebooleanSets whether the cookie is secured. Defaults to the secure status of the request.
micronaut.multitenancy.tenantwriter.cookie.cookie-max-agejava.time.temporal.TemporalAmountSets the maximum age of the cookie.
micronaut.multitenancy.tenantwriter.cookie.cookie-same-siteSameSiteDetermines if this this Cookie can be sent along cross-site requests. For more information, please look <a href="https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-05">here</a>

Configuration properties for HttpHeaderTenantWriterConfigurationProperties

PropertyTypeDescription
micronaut.multitenancy.tenantwriter.httpheader.enabledbooleanEnables HttpHeaderTenantWriter . Default value (false).
micronaut.multitenancy.tenantwriter.httpheader.header-namejava.lang.StringHttp Header name. Default value ("tenantId").