Skip to content

Commit

Permalink
Fixed incorrect AZURE_[NAV|TRYGDEETATEN]_APP_CLIENT_[ID|SECRET].
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Dec 16, 2024
1 parent 4a5621f commit 23121d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class AzureNavProxyClientCredential extends ClientCredential {

public AzureNavProxyClientCredential(
@Value("${AZURE_NAV_OPENID_CONFIG_TOKEN_ENDPOINT:#{null}}") String tokenEndpoint,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-id' : '${AZURE_APP_CLIENT_ID:#{null}}'}") String clientId,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-secret' : '${AZURE_APP_CLIENT_SECRET:#{null}}'}") String clientSecret
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-id' : '${AZURE_NAV_APP_CLIENT_ID:#{null}}'}") String clientId,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-secret' : '${AZURE_NAV_APP_CLIENT_SECRET:#{null}}'}") String clientSecret
) {
super(clientId, clientSecret);
this.tokenEndpoint = tokenEndpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class AzureTrygdeetatenClientCredential extends ClientCredential {

public AzureTrygdeetatenClientCredential(
@Value("${AZURE_TRYGDEETATEN_OPENID_CONFIG_TOKEN_ENDPOINT:#{null}}") String tokenEndpoint,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-id' : '${AZURE_APP_CLIENT_ID:#{null}}'}") String clientId,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-secret' : '${AZURE_APP_CLIENT_SECRET:#{null}}'}") String clientSecret
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-id' : '${AZURE_TRYGDEETATEN_APP_CLIENT_ID:#{null}}'}") String clientId,
@Value("#{systemProperties['spring.profiles.active'] == 'test' ? 'test-client-secret' : '${AZURE_TRYGDEETATEN_CLIENT_SECRET:#{null}}'}") String clientSecret
) {
super(clientId, clientSecret);
this.tokenEndpoint = tokenEndpoint;
Expand Down

0 comments on commit 23121d1

Please sign in to comment.