IAM Core

Maskinporten

On this page

This is not a connector, but is used as authentication by several integrations.

Maskinporten is a common OpenID Connect provider in Norwegian public sektor, used for machine to machine authentication to services like Altinn, Helsepersonellregisteret, SAP from DFØ and others. To allow Fortytwo access, you need to register an application in Maskinporten using the below steps.

Steps

Maskinporten-clients are created using the self service portal from Digdir::

When you are signed, the organization you represent is shown in the top right corner:

alt text

Make sure you have the correct active organization before the next step.

On the New integration ("Ny integrasjon") experience, select the scopes you need to provide Fortytwo access to. This varies with the connector.

Select scopes

This is an example for accessing DFØ SAP:

SAP DFØ Example

Use the following information:

SettingValue
Application type / ApplikasjonstypeWeb
Allowed grant types / Tillatte grant typesurf:ietf:params:oauth:grant-type:jwt-bearer
Client auth method / Klientautentiseringsmetodeprivate_key_jwt
alt text

Adding keys

After adding the application, use add your own public keys ("Egne public nøkler").

To be as secure as possible, we use separate keys per tenant. In order to get your keys, submit the below form with your Entra tenant ID, which you can find at whatismytenantid.com

All the keys must be added to your client in Maskinporten using the Add key (Legg til nøkkel) feature:

alt text

After you have added keys, it should look something like this:

alt text

The Client ID of the application must be provided in the connector configuration.

Maintenance

Maskinporten only accepts certificate validity for 1 year. To ensure availability of the service, we generate a new certificate every 6 months, but continue to use the 'oldest' certificate until it is no longer valid. As a customer, you need to update the JWKS every 6 months, by submitting the above form to get the latest certificate(s) and saving them in the Maskinporten user interface.

Last updated 28 October 2026 Edit this page on GitHub
Esc