From 9f72965c5cf2f4013d47a16ebbaff8e4d79a631d Mon Sep 17 00:00:00 2001 From: Jens-Otto Larsen <46576810+jolarsen@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:42:22 +0200 Subject: [PATCH] Gammelt krav om STS (#1297) --- .../infotrygd/grunnlag/AbstractInfotrygdGrunnlag.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integrasjon/infotrygd-grunnlag-klient/src/main/java/no/nav/vedtak/felles/integrasjon/infotrygd/grunnlag/AbstractInfotrygdGrunnlag.java b/integrasjon/infotrygd-grunnlag-klient/src/main/java/no/nav/vedtak/felles/integrasjon/infotrygd/grunnlag/AbstractInfotrygdGrunnlag.java index 87ee2d169..180e41415 100644 --- a/integrasjon/infotrygd-grunnlag-klient/src/main/java/no/nav/vedtak/felles/integrasjon/infotrygd/grunnlag/AbstractInfotrygdGrunnlag.java +++ b/integrasjon/infotrygd-grunnlag-klient/src/main/java/no/nav/vedtak/felles/integrasjon/infotrygd/grunnlag/AbstractInfotrygdGrunnlag.java @@ -16,9 +16,8 @@ import no.nav.vedtak.felles.integrasjon.rest.RestClient; import no.nav.vedtak.felles.integrasjon.rest.RestConfig; import no.nav.vedtak.felles.integrasjon.rest.RestRequest; -import no.nav.vedtak.felles.integrasjon.rest.TokenFlow; -// Extend og annoter med endpoint, evt default. tokenConfig kan settes til TokenFlow.STS_CC til info +// Extend og annoter med endpoint, evt default. tokenConfig kan settes til TokenFlow.STS_CC eller AZURE_CC public abstract class AbstractInfotrygdGrunnlag implements InfotrygdGrunnlag { protected static final Logger LOG = LoggerFactory.getLogger(AbstractInfotrygdGrunnlag.class); @@ -32,9 +31,6 @@ protected AbstractInfotrygdGrunnlag() { protected AbstractInfotrygdGrunnlag(RestClient client) { this.restClient = client; this.restConfig = RestConfig.forClient(this.getClass()); - if (!TokenFlow.STS_CC.equals(restConfig.tokenConfig())) { - throw new IllegalArgumentException("Utviklerfeil: trenger STS CC mot Infotrygd"); - } } @Override