Skip to content

Commit

Permalink
Axsys aad + ny felles (#1968)
Browse files Browse the repository at this point in the history
* Axsys aad + ny felles

* Bruk v2

* Bruk v2 path i alle cluster
  • Loading branch information
jolarsen authored Jun 27, 2023
1 parent a74b960 commit db46dfd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
import no.nav.vedtak.felles.integrasjon.rest.TokenFlow;

@Dependent
@RestClientConfig(tokenConfig = TokenFlow.STS_CC, endpointProperty = "axsys.url", endpointDefault = "http://axsys.default")
@RestClientConfig(tokenConfig = TokenFlow.ADAPTIVE, endpointProperty = "axsys.url", endpointDefault = "http://axsys.org",
scopesProperty = "axsys.scopes", scopesDefault = "api://prod-fss.org.axsys/.default")
public class EnhetstilgangConnection {

private static final String PATH = "/api/v1/tilgang/";
private static final String PATH = "/api/v2/tilgang/";

private final RestClient httpClient;
private final RestConfig restConfig;
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>0.5.5</version>
<version>0.5.6</version>
</parent>

<groupId>no.nav.foreldrepenger.los</groupId>
Expand All @@ -28,7 +28,7 @@
<sonar.projectKey>navikt_fplos</sonar.projectKey>

<fp-kontrakter.version>6.2.21</fp-kontrakter.version>
<felles.version>4.2.47</felles.version>
<felles.version>4.2.48</felles.version>
<prosesstask.version>3.1.29</prosesstask.version>
</properties>

Expand All @@ -55,7 +55,7 @@
<dependency>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>0.5.5</version>
<version>0.5.6</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down
3 changes: 2 additions & 1 deletion web/src/main/resources/application-dev-fss.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ ldap.serviceuser.basedn=ou=ServiceAccounts,dc=preprod,dc=local
# defaultDS.url=<leses inn fra vault ved oppstart gjennom 05-import-users.sh>

# PDL
pdl.scopes=api://dev-fss.pdl.pdl-api/.default
pdl.scopes=api://dev-fss.pdl.pdl-api/.default
axsys.scopes=api://dev-fss.org.axsys/.default
3 changes: 2 additions & 1 deletion web/src/main/resources/application-prod-fss.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ ldap.serviceuser.basedn=ou=ServiceAccounts,dc=adeo,dc=no
# defaultDS.url=<leses inn fra vault ved oppstart gjennom 05-import-users.sh>

# PDL
pdl.scopes=api://prod-fss.pdl.pdl-api/.default
pdl.scopes=api://prod-fss.pdl.pdl-api/.default
axsys.scopes=api://prod-fss.org.axsys/.default
3 changes: 3 additions & 0 deletions web/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ abac.attributt.drift=no.nav.abac.attributter.foreldrepenger.drift
# PDL
pdl.base.url=http://pdl-api.pdl/graphql

# Axsys
axsys.url=http://axsys.org

# Kafka / AIven
kafka.behandlinghendelse.topic=teamforeldrepenger.behandling-hendelse-v1

Expand Down
2 changes: 2 additions & 0 deletions web/src/test/resources/application-vtp.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ abac.pdp.endpoint.url=http://localhost:8060/rest/asm-pdp/authorize

pdl.base.url=http://localhost:8060/rest/api/pdl/graphql
pdl.scopes=testscope
axsys.url=http://localhost:8060/rest/axsys-enhetstilgang/
axsys.scopes=testscope

# Kafka Aiven
KAFKA_BROKERS=localhost:9093
Expand Down

0 comments on commit db46dfd

Please sign in to comment.