Skip to content

Commit 48b7223

Browse files
Fix spring boot api key enable https (#2445)
1 parent d430114 commit 48b7223

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

temporal-spring-boot-autoconfigure/src/main/java/io/temporal/spring/boot/autoconfigure/properties/ConnectionProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public ConnectionProperties(
5151
@Nullable MTLSProperties mtls,
5252
@Nullable String apiKey) {
5353
this.target = target;
54-
this.enableHttps = Boolean.TRUE.equals(enableHttps);
54+
this.enableHttps = enableHttps;
5555
this.mtls = mtls;
5656
this.apiKey = apiKey;
5757
}

temporal-spring-boot-autoconfigure/src/test/java/io/temporal/spring/boot/autoconfigure/ApiKeyAuthTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public void testProperties() {
5959
.getMetadata()
6060
.get(AuthorizationGrpcMetadataProvider.AUTHORIZATION_HEADER_KEY)
6161
.equals("Bearer my-api-key")));
62+
Assertions.assertTrue(workflowServiceStubs.getOptions().getEnableHttps());
6263
}
6364

6465
@ComponentScan(

0 commit comments

Comments
 (0)