Skip to content

Commit

Permalink
Gammelt krav om STS (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen authored Jun 29, 2023
1 parent 547f4de commit 9f72965
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 9f72965

Please sign in to comment.