@@ -56,20 +56,24 @@ object Configuration {
56
56
" ROLE_STRENGT_FORTROLIG" to " 5ef775f2-61f8-4283-bf3d-8d03f428aa14" ,
57
57
" ROLE_SKJERMING" to " dbe4ad45-320b-4e9a-aaa1-73cca4ee124d" ,
58
58
" ROLE_DRIFT" to " c511113e-5b22-49e7-b9c4-eeb23b01f518" ,
59
- " PDL_SCOPE" to " api:// localhost:8091/.default " ,
59
+ " PDL_SCOPE" to " localhost" ,
60
60
" PDL_ENDPOINT_URL" to " https://localhost:8091/graphql" ,
61
61
" SKJERMING_SCOPE" to " localhost" ,
62
62
" SKJERMING_URL" to " http://host.docker.internal:8091" ,
63
63
" TILTAK_SCOPE" to " localhost" ,
64
64
" TILTAK_URL" to " http://host.docker.internal:8091" ,
65
65
" UTBETALING_SCOPE" to " localhost" ,
66
66
" UTBETALING_URL" to " http://localhost:8091" ,
67
- " DOKUMENT_SCOPE" to " localhost" ,
68
- " DOKUMENT_URL" to " http://localhost:8091" ,
67
+ " JOARK_SCOPE" to " localhost" ,
68
+ " JOARK_URL" to " http://localhost:8091" ,
69
+ " DOKDIST_SCOPE" to " localhost" ,
70
+ " DOKDIST_URL" to " http://localhost:8091" ,
71
+ " PDFGEN_SCOPE" to " localhost" ,
72
+ " PDFGEN_URL" to " http://localhost:8091" ,
69
73
" NAIS_APP_IMAGE" to " http://localhost8080:githubhash" ,
70
74
" AZURE_APP_CLIENT_ID" to " tiltakspenger-vedtak" ,
71
75
" AZURE_APP_CLIENT_SECRET" to " secret" ,
72
- " AZURE_APP_WELL_KNOWN_URL" to " http://localhost:2222 " ,
76
+ " AZURE_APP_WELL_KNOWN_URL" to " http://host.docker.internal:6969/azure/.well-known/openid-configuration " ,
73
77
" AZURE_OPENID_CONFIG_ISSUER" to " http://host.docker.internal:6969/azure" ,
74
78
" AZURE_OPENID_CONFIG_JWKS_URI" to " http://host.docker.internal:6969/azure/jwks" ,
75
79
" DB_USERNAME" to " postgres" ,
@@ -92,8 +96,12 @@ object Configuration {
92
96
" TILTAK_URL" to " http://tiltakspenger-tiltak" ,
93
97
" UTBETALING_SCOPE" to " api://dev-gcp.helved.utsjekk/.default" ,
94
98
" UTBETALING_URL" to " http://utsjekk.helved" ,
95
- " DOKUMENT_SCOPE" to " api://dev-gcp.tpts.tiltakspenger-dokument/.default" ,
96
- " DOKUMENT_URL" to " http://tiltakspenger-dokument" ,
99
+ " JOARK_SCOPE" to " api://dev-fss.teamdokumenthandtering.dokarkiv-q1/.default" ,
100
+ " JOARK_URL" to " https://dokarkiv.dev-fss-pub.nais.io" ,
101
+ " DOKDIST_SCOPE" to " api://dev-fss.teamdokumenthandtering.saf-q1/.default" ,
102
+ " DOKDIST_URL" to " https://dokdistfordeling-q1.dev-fss-pub.nais.io" ,
103
+ " PDFGEN_SCOPE" to " api://dev-gcp.tpts.tiltakspenger-pdfgen/.default" ,
104
+ " PDFGEN_URL" to " http://tiltakspenger-pdfgen" ,
97
105
),
98
106
)
99
107
private val prodProperties =
@@ -108,8 +116,12 @@ object Configuration {
108
116
" TILTAK_URL" to " http://tiltakspenger-tiltak" ,
109
117
" UTBETALING_SCOPE" to " api://prod-gcp.helved.utsjekk/.default" ,
110
118
" UTBETALING_URL" to " http://utsjekk.helved" ,
111
- " DOKUMENT_SCOPE" to " api://prod-gcp.tpts.tiltakspenger-dokument/.default" ,
112
- " DOKUMENT_URL" to " http://tiltakspenger-dokument" ,
119
+ " JOARK_SCOPE" to " api://prod-fss.teamdokumenthandtering.dokarkiv/.default" ,
120
+ " JOARK_URL" to " https://dokarkiv.prod-fss-pub.nais.io" ,
121
+ " DOKDIST_SCOPE" to " api://prod-fss.teamdokumenthandtering.saf/.default" ,
122
+ " DOKDIST_URL" to " https://dokdistfordeling.prod-fss-pub.nais.io" ,
123
+ " PDFGEN_SCOPE" to " api://prod-gcp.tpts.tiltakspenger-pdfgen/.default" ,
124
+ " PDFGEN_URL" to " http://tiltakspenger-pdfgen" ,
113
125
),
114
126
)
115
127
@@ -198,8 +210,20 @@ object Configuration {
198
210
wellknownUrl = wellknownUrl,
199
211
)
200
212
201
- fun oauthConfigDokument (
202
- scope : String = config()[Key ("DOKUMENT_SCOPE ", stringType)],
213
+ fun oauthConfigJoark (
214
+ scope : String = config()[Key ("JOARK_SCOPE ", stringType)],
215
+ clientId : String = config()[Key ("AZURE_APP_CLIENT_ID ", stringType)],
216
+ clientSecret : String = config()[Key ("AZURE_APP_CLIENT_SECRET ", stringType)],
217
+ wellknownUrl : String = config()[Key ("AZURE_APP_WELL_KNOWN_URL ", stringType)],
218
+ ) = AzureTokenProvider .OauthConfig (
219
+ scope = scope,
220
+ clientId = clientId,
221
+ clientSecret = clientSecret,
222
+ wellknownUrl = wellknownUrl,
223
+ )
224
+
225
+ fun oauthConfigDokdist (
226
+ scope : String = config()[Key ("DOKDIST_SCOPE ", stringType)],
203
227
clientId : String = config()[Key ("AZURE_APP_CLIENT_ID ", stringType)],
204
228
clientSecret : String = config()[Key ("AZURE_APP_CLIENT_SECRET ", stringType)],
205
229
wellknownUrl : String = config()[Key ("AZURE_APP_WELL_KNOWN_URL ", stringType)],
@@ -228,8 +252,9 @@ object Configuration {
228
252
229
253
fun tiltakClientConfig (baseUrl : String = config()[Key ("TILTAK_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
230
254
231
- fun dokumentClientConfig (baseUrl : String = config()[Key ("DOKUMENT_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
232
-
255
+ fun joarkClientConfig (baseUrl : String = config()[Key ("JOARK_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
256
+ fun dokdistClientConfig (baseUrl : String = config()[Key ("DOKDIST_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
257
+ fun pdfgenClientConfig (baseUrl : String = config()[Key ("PDFGEN_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
233
258
fun utbetalingClientConfig (baseUrl : String = config()[Key ("UTBETALING_URL ", stringType)]) = ClientConfig (baseUrl = baseUrl)
234
259
235
260
fun isNais () = applicationProfile() != Profile .LOCAL
0 commit comments