Skip to content

Commit 660176a

Browse files
committed
Fjerne unødvendig config
1 parent 6c84c81 commit 660176a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

http-client/main/no/nav/tilleggsstonader/libs/http/config/RestTemplateConfiguration.kt

-15
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,6 @@ class RestTemplateConfiguration(
107107
.build()
108108
}
109109

110-
// Ekspirmentell som har inn identisk config som familie har då azure-graph feiler
111-
@Bean("jwtBearer")
112-
fun restTemplateAzueJwtBearer(
113-
consumerIdClientInterceptor: ConsumerIdClientInterceptor,
114-
bearerTokenClientInterceptor: BearerTokenClientInterceptor,
115-
): RestTemplate =
116-
RestTemplateBuilder()
117-
.interceptors(
118-
consumerIdClientInterceptor,
119-
bearerTokenClientInterceptor,
120-
MdcValuesPropagatingClientInterceptor(),
121-
).setConnectTimeout(Duration.ofSeconds(20))
122-
.setReadTimeout(Duration.ofSeconds(20))
123-
.build()
124-
125110
private fun RestTemplateBuilder.defaultBuilderConfig() = this
126111
.setConnectTimeout(Duration.of(2, ChronoUnit.SECONDS))
127112
.setReadTimeout(Duration.of(25, ChronoUnit.SECONDS))

0 commit comments

Comments
 (0)