ID-porten Setup
Configuration
This is the configuration for finsta-staging. Update the configuration regarding Google Project Id and hostname for your setup.
ID-porten
-
Go to Samarbeidsportalen
-
Login and choose Integrasjoner →
Ny Integrasjon -
Difi-tjeneste →
API-klient -
Legg til scopes →
profile,openid,user/kontaktinformasjon.read,user.spraak.read,skatteetaten:formueinntekt/skattemelding -
Kundens org.nr →
917760187 -
Navn på integrasjonen → tritt-test-220524
-
Beskrivelse → Integrasjon for tritt-test-220524
-
Grant Types → [
authorization_code,refresh_token] -
Klientautentiseringsmetode →
client_secret_basic -
Applikasjonstype →
web -
Gyldig(e) redirect uri-er →
https://tritt-test-220524.firebaseapp.com/__/auth/handler -
Gyldig(e) post logout redirect uri-er →
https://finsta.test.tritt.dev/, http://finsta.tritt.test/ -
Tilbake-uri* →
https://finsta.test.tritt.dev/* -
Klikk lagre og vare på
client_idogclient_secretfra popup
Google Cloud
-
Go to Google Cloud Console
-
Select the project you want to manage
-
Go to Identity Platform → Identity Platform → Add a Provider
-
Select a provider →
OpenID Connect -
Choose Grant Type →
Code Flow -
Name →
idporten -
Client ID → The client id value from the ID-porten configuration (Integrasjonens identifikator)
-
Client Secret → The client secret from the ID-porten configuration
-
Remember to add the correct domain under Authorized Domains in the right menu
How to validate against ID-porten
-
Go to Firebase Console
-
Choose
tritt-test-220524 -
Choose Build → Firestore Database
-
Select users → RWutktfC3DPazEc5HlkCI0ujsXH2 (kjell@tritt.no) → userOrganizatons and select
Delete collectionfrom the dot menu on the upper right -
In IntelliJ run
Deploy [dev-staging] -
Go to http://finsta.tritt.test
-
Login in with username
kjell@tritt.nowith passwordcolaboks -
Create a new organization with org.nr
910215663 -
Create a new financial statement and upload a trial balance
-
Select
Næringsspesifikasjonand clickValiderfrom the right menu -
In the ID-porten popup log in with username
27107900352, passwordpassword01and pin code12345. -
After a few seconds the xml result from the validation should be in the
response_bodycolumn in thesubmissiontable in the schema for the tenant.