Skip to content

Commit

Permalink
fix(autoconfigure) Add missing configuration property metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Vitale <[email protected]>
  • Loading branch information
ThomasVitale committed Jan 27, 2024
1 parent b7227b5 commit 9c84ddb
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class HttpTenantResolutionProperties {
/**
* Mode of HTTP resolution.
*/
private HttpResolutionMode type = HttpResolutionMode.HEADER;
private HttpResolutionMode resolutionMode = HttpResolutionMode.HEADER;

/**
* Configuration for HTTP header tenant resolution.
Expand All @@ -50,12 +50,12 @@ public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public HttpResolutionMode getType() {
return type;
public HttpResolutionMode getResolutionMode() {
return resolutionMode;
}

public void setType(HttpResolutionMode type) {
this.type = type;
public void setResolutionMode(HttpResolutionMode resolutionMode) {
this.resolutionMode = resolutionMode;
}

public Header getHeader() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"properties": [
{
"name": "arconia.multitenancy.management.mdc.key",
"defaultValue": "tenantId"
},
{
"name": "arconia.multitenancy.management.observations.cardinality",
"defaultValue": "high"
},
{
"name": "arconia.multitenancy.management.observations.key",
"defaultValue": "tenant.id"
},
{
"name": "arconia.multitenancy.resolution.fixed.tenant-id",
"defaultValue": "default"
},
{
"name": "arconia.multitenancy.resolution.http.cookie.cookie-name",
"defaultValue": "TENANT-ID"
},
{
"name": "arconia.multitenancy.resolution.http.filter.ignore-paths",
"defaultValue": [
"\/actuator\/**",
"\/webjars\/**",
"\/css\/**",
"\/js\/**",
".ico"
]
},
{
"name": "arconia.multitenancy.resolution.http.header.header-name",
"defaultValue": "X-TenantId"
},
{
"name": "arconia.multitenancy.resolution.http.resolutionMode",
"defaultValue": "header"
}
]
}

0 comments on commit 9c84ddb

Please sign in to comment.