Skip to content

Commit

Permalink
"Cosmetic" rename of http.proxy to HTTP_PROXY to indicate source is e…
Browse files Browse the repository at this point in the history
…nvironment, with meta.
  • Loading branch information
rfc3092 committed Dec 18, 2024
1 parent c7a8c2a commit 365e05b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
@AutoConfiguration(after = ClientCredentialAutoConfiguration.class)
public class TokenServiceAutoConfiguration {

@Value("${http.proxy:#{null}}")
private String proxyHost;
@Value("${HTTP_PROXY:#{null}}")
private String httpProxy;

@Primary
@Bean
Expand All @@ -40,7 +40,7 @@ AzureTokenService azureAdTokenService(
GetAuthenticatedToken getAuthenticatedToken
) {
Assert.notNull(issuerUrl, "AAD_ISSUER_URI must be set");
return new AzureTokenService(proxyHost, issuerUrl, clientCredential, getAuthenticatedToken);
return new AzureTokenService(httpProxy, issuerUrl, clientCredential, getAuthenticatedToken);
}

@Primary
Expand All @@ -58,7 +58,7 @@ AzureNavTokenService azureNavTokenServiceTest(
AzureNavTokenService azureNavTokenService(
AzureNavClientCredential azureNavClientCredential
) {
return new AzureNavTokenService(proxyHost, azureNavClientCredential);
return new AzureNavTokenService(httpProxy, azureNavClientCredential);
}

@Primary
Expand All @@ -80,7 +80,7 @@ AzureTrygdeetatenTokenService trygdeetatenAzureAdTokenService(
GetAuthenticatedUserId getAuthenticatedUserId,
ObjectMapper objectMapper
) {
return new AzureTrygdeetatenTokenService(proxyHost, clientCredential, getAuthenticatedUserId, objectMapper);
return new AzureTrygdeetatenTokenService(httpProxy, clientCredential, getAuthenticatedUserId, objectMapper);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"properties": [
{
"name": "HTTP_PROXY",
"type": "java.lang.String",
"description": "Satt av NAIS i pod, hvis NAIS-manifestet har <tt>spec.webproxy</tt>."
}
]
}

0 comments on commit 365e05b

Please sign in to comment.