An OIO IDWS REST client sample for NemLog-in Lookup Services.
This Java code shows how to invoke NemLog-in Lookup Services using the OIO IDWS authorization model.
The services are described in section 2 of [SS]. Please refer to [SS] for detailed documentation of available services.
Note especially, that services described in section 3 of [SS] (UUID match services) use a different authentication and authorization model and that this sample is not relevant if you need to use the UUID match services.
The solution consists of a single Java Spring Boot application that executes a REST invocation of PID-CPR service in Application.run()
- Run application with
mvn spring-boot:run
The client will:
- Request a SAML token at the NemLog-in STS
- Exchange the SAML token for a JWT token (only for REST)
- Invoke the PID-CPR methods in the NemLog-in pre-production environment (domain
devtest4-nemlog-in.dk
)
- trust.jks
-
Trust-store containing the signing certificate for the NemLog-in pre-production STS.
Used for verifying authenticity of the SAML tokens issued by the STS.
Note that SOAP and REST clients must update this certificate in their environment when it is updated in NemLog-in.
Subject:
CN=NemLog-in IdP - Test, SERIALNUMBER=UI:DK-O:G:a040fe26-ce78-4328-ac0e-29eeb12f46df, O=Digitaliseringsstyrelsen, organizationIdentifier=NTRDK-34051178, C=DK
- lookupservice-testwsc-test.pfx
- File containing certificate and private key used by clients (WSC) to sign the STS request.
NOTE: It is very important, that you do not reuse this certificate for your own WSC! Follow the guide
[UG] when you establish your own WSC.
Subject:
CN=NemLog-in LookupServices.TestWSC - Test, SERIALNUMBER=UI:DK-O:G:9f716cec-2420-4aff-b455-4972897b6249, O=Digitaliseringsstyrelsen, organizationIdentifier=NTRDK-34051178, C=DK
- [SS]
- NemLog-in Supporting Services documentation, available at https://tu.nemlog-in.dk/oprettelse-og-administration-af-tjenester/log-in/dokumentation.og.guides/.
- [UG]
- Guide til anvendelse af Opslagstjenester, available at https://tu.nemlog-in.dk/oprettelse-og-administration-af-tjenester/log-in/dokumentation.og.guides/.
- [Inttest]
- Certificates for Integrationtest can be obtained at
- [Prod]
- Certificates for Production can be obtained at