Skip to content

Commit

Permalink
Tving ny versjon (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen authored Jan 15, 2022
1 parent 7657bd1 commit b182085
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.List;
import java.util.TimeZone;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;

Expand Down Expand Up @@ -58,7 +59,7 @@
import no.nav.vedtak.felles.integrasjon.rest.StsAccessTokenConfig;
import no.nav.vedtak.felles.integrasjon.rest.SystemConsumerStsRestClient;

@Dependent
@ApplicationScoped
public class PdlKlient implements Pdl {
private static final ObjectMapper MAPPER = mapper();
@Deprecated(forRemoval = true, since = "3.0.x")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.net.URI;
import java.util.List;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;

Expand All @@ -12,7 +13,7 @@
import no.nav.foreldrepenger.konfig.KonfigVerdi;
import no.nav.vedtak.sikkerhet.oidc.WellKnownConfigurationHelper;

@Dependent
@ApplicationScoped
public class StsAccessTokenConfig {

private static final String DEFAULT_PATH = "/rest/v1/sts/token";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.net.URI;
import java.util.List;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;

Expand Down Expand Up @@ -43,7 +44,7 @@
* @deprecated Denne koden er en katastrofe, bruk {@link JerseySafTjeneste}
*/
@Deprecated
@Dependent
@ApplicationScoped
public class SafTjeneste implements Saf {

private static List<Integer> HTTP_KODER_TOM_RESPONS = List.of(
Expand Down

0 comments on commit b182085

Please sign in to comment.