Skip to content

Commit

Permalink
Conditional on properties defining token endpoints for TrygdeetatenAz…
Browse files Browse the repository at this point in the history
…ureAdTokenService and NavAzureAdTokenService.
  • Loading branch information
rfc3092 committed Dec 17, 2024
1 parent c3cb8a4 commit 0db7905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import lombok.extern.slf4j.Slf4j;
import no.nav.testnav.libs.securitycore.domain.azuread.AzureNavClientCredential;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
Expand All @@ -22,6 +23,7 @@

@Slf4j
@Service
@ConditionalOnProperty("AZURE_NAV_OPENID_CONFIG_TOKEN_ENDPOINT")
public class NavAzureAdTokenService implements ExchangeToken {

private final WebClient webClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import no.nav.testnav.libs.securitycore.domain.azuread.AzureTrygdeetatenClientCredential;
import no.nav.testnav.libs.securitycore.domain.azuread.ClientCredential;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
Expand All @@ -30,6 +31,7 @@

@Slf4j
@Service
@ConditionalOnProperty("AZURE_TRYGDEETATEN_OPENID_CONFIG_TOKEN_ENDPOINT")
public class TrygdeetatenAzureAdTokenService implements ExchangeToken {

private final WebClient webClient;
Expand Down

0 comments on commit 0db7905

Please sign in to comment.