From 537b67d95386df8fca11d7d8be2795d22ab626ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Ola=20St=C3=A5lberg?= Date: Thu, 18 Apr 2024 13:56:01 +0200 Subject: [PATCH] attempt 1 id-porten. --- .env | 4 ++-- src/config/auth.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 5ffd549..fead937 100644 --- a/.env +++ b/.env @@ -18,8 +18,8 @@ REACT_APP_CREATE_GEOJSON_DOCUMENT_URL=https://dibk.apps.tt02.altinn.no/dibk/regu REACT_APP_GML2SOSI_URL=https://gml2sosi.ft-dev.dibk.no/reguleringsplanforslag REACT_APP_EXCHANGE_ALTINN_TOKEN_URL=https://dibk.apps.tt02.altinn.no/dibk/varselplanoppstart/exchangealtinntoken -REACT_APP_AUTH_LOGIN_REDIRECT_URI=http://localhost:3000 -REACT_APP_AUTH_LOGOUT_REDIRECT_URI=http://localhost:3000 +REACT_APP_AUTH_LOGIN_REDIRECT_URI=https://arkitektum.github.io/FTPB-ID-porten-client/ +REACT_APP_AUTH_LOGOUT_REDIRECT_URI=https://arkitektum.github.io/FTPB-ID-porten-client/ BUILD_PATH='./docs' PUBLIC_URL='/FTPB-ID-porten-client' \ No newline at end of file diff --git a/src/config/auth.js b/src/config/auth.js index 2ce25be..50ddcbe 100644 --- a/src/config/auth.js +++ b/src/config/auth.js @@ -6,8 +6,8 @@ const AUTH_LOGOUT_REDIRECT_URI = process.env.REACT_APP_AUTH_LOGOUT_REDIRECT_URI; const EXCHANGE_ALTINN_TOKEN_URL = process.env.REACT_APP_EXCHANGE_ALTINN_TOKEN_URL; const oidcConfig = { - authority: 'https://test.idporten.no', - client_id: 'e8036c98-a703-4cbd-8028-3434cf23a4fe', + authority: 'https://idporten.no', + client_id: '3bb05d5e-7e55-4a1f-8e8c-fdc6c4c2df9f', redirect_uri: AUTH_LOGIN_REDIRECT_URI, post_logout_redirect_uri: AUTH_LOGOUT_REDIRECT_URI, response_type: 'code',