Skip to content

Commit 70bcd0b

Browse files
committed
CWMS-2000 - Updates to add ssl socket data to api connection info when querying well-known-endpoint
1 parent 43d0966 commit 70bcd0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cwbi-auth-http-client/src/main/java/hec/army/usace/hec/cwbi/auth/http/client/OpenIdTokenController.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ public abstract class OpenIdTokenController {
1515
protected abstract String retrieveWellKnownEndpoint(ApiConnectionInfo apiConnectionInfo) throws IOException;
1616
public final ApiConnectionInfo retrieveTokenUrl(ApiConnectionInfo apiConnectionInfo, SslSocketData sslSocketData) throws IOException {
1717
String wellKnownEndpoint = retrieveWellKnownEndpoint(apiConnectionInfo);
18-
HttpRequestExecutor executor = new HttpRequestBuilderImpl(new ApiConnectionInfoBuilder(wellKnownEndpoint).build())
18+
ApiConnectionInfo wellKnownApiConnectionInfo = new ApiConnectionInfoBuilder(wellKnownEndpoint)
19+
.withSslSocketData(sslSocketData)
20+
.build();
21+
HttpRequestExecutor executor = new HttpRequestBuilderImpl(wellKnownApiConnectionInfo)
1922
.get()
2023
.withMediaType(ACCEPT_HEADER);
2124
try (HttpRequestResponse response = executor.execute()) {

0 commit comments

Comments
 (0)