Connect to NemLog-in with SAML 2.0 (Template)

Use the NemLog-in template to configure a SAML 2.0 authentication method with OIOSAML 3.0.3 defaults. The template guides you through the public or private sector setup and generates the metadata you upload to NemLog-in.

This guide covers OIOSAML 3.0.3 only. OIOSAML 4.0.0 is not covered at this time.

Pricing

NemLog-in for private sector is a low-cost way to offer MitID login. NemLog-in adds 0.02 DKK on top of the MitID base price (which applies to all brokers) and NemLog-in has no monthly fee. The tradeoff is that NemLog-in uses SAML 2.0 (OIOSAML) and has additional requirements. FoxIDs handles this and lets you connect your application with OpenID Connect.

Item Price
One-time NemLog-in onboarding fee 4,500 DKK
NemLog-in price per login 0.02 DKK
MitID base price per login (applies to all MitID brokers) 0.175 DKK
Total price per login 0.195 DKK
FoxIDs Pro plan per month (includes 2,000 logins per month) 223.80 DKK
FoxIDs price per login 0.038 DKK

The same price applies for both MitID private users and MitID employee users.

NemLog-in is free to use for the public sector.

OpenID Connect bridge

By configuring a SAML 2.0 authentication method and an OpenID Connect application registration FoxIDs becomes a bridge between SAML 2.0 and OpenID Connect. FoxIDs then handles the SAML 2.0 connection as a Relying Party (RP) / Service Provider (SP) and you only need to care about OpenID Connect in your application.

Get started with NemLog-in

Before you can create IT systems for NemLog-in, your organization must be connected. This is only necessary once per organization.

  1. Follow the NemLog-in onboarding steps at https://tu.nemlog-in.dk/tilslutning/ (one-time per organization)
  2. Once the organization is connected, create IT systems in the NemLog-in administration portal. Each IT system integration test or production tab corresponds to a FoxIDs authentication method.

Other useful resources:

Consider a separate environment

NemLog-in requires an OCES3 certificate and extended logging. The template updates the environment configuration accordingly, so consider creating a separate environment dedicated to NemLog-in.

Separate environment for NemLog-in

You can connect two environments in the same tenant with an Environment Link.

Create the NemLog-in authentication method (template)

Start by configuring a NemLog-in integration test connection and then the production connection.

1) Start in FoxIDs Control Client

  1. Go to the Authentication tab
  2. Click New authentication
  3. Select NemLog-in - SAML 2.0

Select the NemLog-in template

2) Configure the template

  1. Enter a name for the authentication method
  2. Select Sector:
    • Public sector (OIOSAML 3.0.3)
    • Private sector (OIOSAML 3.0.3)
  3. Select NemLog-in environment:
    • Integration test
    • Production

NemLog-in template settings

3) Private sector CPR flow

If you select the private sector, you can enable (default enabled):

  • Request CPR to ask the user for a CPR number during login
  • Save CPR on external users to store CPR on the external user so the user only needs to enter CPR once or you can set a lifetime for the saved CPR on the external user

The template configures the CPR match UI flow automatically.

Private sector CPR flow

4) Configure certificate

NemLog-in requires an OCES3 certificate.

  • Integration test: the template can use a default test certificate, which you can replace if needed
  • Production: upload your own OCES3 certificate. You can create a production OCES3 certificate in the certificate administration

An OCES3 certificate is valid for 3 years. Update the NemLog-in template before the certificate expires and update the certificate in NemLog-in.

NemLog-in certificate setup

5) Metadata URL and IdP metadata

The template pre-fills the NemLog-in IdP metadata URL for the selected environment.

When NemLog-in changes certificate, the change is provisioned automatically. The NemLog-in template uses NemLog-in metadata exposed via the FoxIDs website, which we keep updated, and the template automatically loads the new metadata.

6) Level of assurance (optional)

You can optionally set a minimum level of assurance (LoA) (OIOSAML 3.0.3):

  • Low https://data.gov.dk/concept/core/nsis/loa/Low
  • Substantial https://data.gov.dk/concept/core/nsis/loa/Substantial
  • High https://data.gov.dk/concept/core/nsis/loa/High

7) Authentication context (optional)

You can optionally set authentication context requirements.

You can specify ID type:

  • https://data.gov.dk/eid/Person
  • https://data.gov.dk/eid/Professional

And possible credential types:

  • https://nemlogin.dk/internal/credential/type/nemidkeycard
  • https://nemlogin.dk/internal/credential/type/nemidkeyfile
  • https://nemlogin.dk/internal/credential/type/mitid
  • https://nemlogin.dk/internal/credential/type/local
  • https://nemlogin.dk/internal/credential/type/test

Authentication context settings

8) App-switch

Optionally configure app-switch to create one authentication method profile per mobile platform. You can then allow (select) the profiles per FoxIDs application configuration.

  • Android profile name: android
  • iOS profile name: ios

Further reading:

Android and iOS app-switch settings

9) Add contact person

Add at least one technical or administrative contact person in metadata.

Technical contact person

10) Create and download SP metadata

Click Create or Update. After the authentication method is created, the Application information section shows the metadata URL and a download button (in the top of the NemLog-in template).

If you change attributes or authentication context later, you must upload the metadata again in NemLog-in.

Download SP metadata

Configure the NemLog-in IT system

When you create an IT system in NemLog-in it has two tabs: integration test and production.

  1. Create a FoxIDs NemLog-in connection for integration test with the template
  2. In the NemLog-in administration portal, upload the SP metadata to the integration test tab and provision to integration test
  3. Upload the test report:
  4. After approval, the production tab opens
  5. Create a FoxIDs NemLog-in connection for production with the template
  6. Upload the SP metadata to the production tab and provision to production
  7. You are now in production with MitID

Upload NemLog-in metadata

Test the authentication method

  1. Go back to FoxIDs Control Client and open the NemLog-in authentication method
  2. Click Test authentication to create a test application
  3. Click Start the test to start the test

NemLog-in template test

Legacy

If you need the legacy guide for configuring NemLog-in with the standard SAML 2.0 settings, see Connect to NemLog-in with SAML 2.0 (Legacy standard configuration).

Din integritet

Vi använder cookies för att göra din upplevelse av våra webbplatser bättre. Klicka på 'Acceptera alla cookies' för att godkänna användningen av cookies. För att avstå från icke-nödvändiga cookies, klicka på 'Endast nödvändiga cookies'.

Besök vår integritetspolicy för mer