Skip to content

Commit 9b481f4

Browse files
authored
Legger inn fp-tilgang (#1360)
1 parent 8032cf0 commit 9b481f4

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/config/impl/OidcProviderConfig.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,18 @@ private static OpenIDConfiguration createStsConfiguration(String wellKnownUrl) {
122122
@SuppressWarnings("unused")
123123
private static OpenIDConfiguration createAzureAppConfiguration(String wellKnownUrl) {
124124
var proxyUrl = ENV.isFss() ? URI.create(ENV.getProperty(AZURE_HTTP_PROXY, getDefaultProxy())) : null;
125-
return createConfiguration(OpenIDProvider.AZUREAD, Optional.ofNullable(getAzureProperty(AzureProperty.AZURE_OPENID_CONFIG_ISSUER))
125+
return createConfiguration(OpenIDProvider.AZUREAD,
126+
Optional.ofNullable(getAzureProperty(AzureProperty.AZURE_OPENID_CONFIG_ISSUER))
126127
.orElseGet(() -> getIssuerFra(wellKnownUrl, proxyUrl).orElse(null)),
127128
Optional.ofNullable(getAzureProperty(AzureProperty.AZURE_OPENID_CONFIG_JWKS_URI))
128129
.orElseGet(() -> getJwksFra(wellKnownUrl, proxyUrl).orElse(null)),
129130
Optional.ofNullable(getAzureProperty(AzureProperty.AZURE_OPENID_CONFIG_TOKEN_ENDPOINT))
130-
.orElseGet(() -> getTokenEndpointFra(wellKnownUrl, proxyUrl).orElse(null)), ENV.isFss(), proxyUrl,
131-
getAzureProperty(AzureProperty.AZURE_APP_CLIENT_ID), getAzureProperty(AzureProperty.AZURE_APP_CLIENT_SECRET), ENV.isLocal());
131+
.orElseGet(() -> getTokenEndpointFra(wellKnownUrl, proxyUrl).orElse(null)),
132+
ENV.isFss(),
133+
proxyUrl,
134+
getAzureProperty(AzureProperty.AZURE_APP_CLIENT_ID),
135+
getAzureProperty(AzureProperty.AZURE_APP_CLIENT_SECRET),
136+
ENV.isLocal());
132137
}
133138

134139
private static String getAzureProperty(AzureProperty property) {

integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/FpApplication.java

+8-6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public enum FpApplication {
2121
FPDOKGEN,
2222
FPWSPROXY,
2323
FPOVERSIKT,
24+
FPTILGANG,
2425
NONFP;
2526

2627
private static final Environment ENV = Environment.current();
@@ -30,16 +31,17 @@ public enum FpApplication {
3031

3132
private static Integer lokalPort(FpApplication application) {
3233
return switch (application) {
33-
case FPSAK -> 8080;
34+
case FPFORMIDLING -> 8010;
3435
case FPABAKUS -> 8015;
3536
case FPKALKULUS -> 8016;
36-
case FPFORMIDLING -> 8010;
37-
case FPRISK -> 8075;
37+
case FPTILBAKE -> 8030;
38+
case FPTILGANG -> 8050;
3839
case FPABONNENT -> 8065;
39-
case FPFORDEL -> 8090;
40-
case FPLOS -> 8071;
4140
case FPOPPDRAG -> 8070;
42-
case FPTILBAKE -> 8030;
41+
case FPLOS -> 8071;
42+
case FPRISK -> 8075;
43+
case FPSAK -> 8080;
44+
case FPFORDEL -> 8090;
4345
case FPDOKGEN -> 8291;
4446
case FPWSPROXY -> 8292;
4547
case FPOVERSIKT -> 8889;

0 commit comments

Comments
 (0)