![]() |
VOOZH | about |
dotnet add package Altinn.ApiClients.Dialogporten --version 1.117.3
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.117.3
<PackageReference Include="Altinn.ApiClients.Dialogporten" Version="1.117.3" />
<PackageVersion Include="Altinn.ApiClients.Dialogporten" Version="1.117.3" />Directory.Packages.props
<PackageReference Include="Altinn.ApiClients.Dialogporten" />Project file
paket add Altinn.ApiClients.Dialogporten --version 1.117.3
#r "nuget: Altinn.ApiClients.Dialogporten, 1.117.3"
#:package Altinn.ApiClients.Dialogporten@1.117.3
#addin nuget:?package=Altinn.ApiClients.Dialogporten&version=1.117.3Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.117.3Install as a Cake Tool
Simple overview Refit-based client SDK Based on https://github.com/altinn/altinn-apiclient-maskinporten
The refit-Interface is autogenerated with refitter. It uses OperationId to create method names. Uses refit IApiResponse on returns.
Install the nuget package through Package Manager Console:
Install-Package Altinn.ApiClients.Dialogporten
Or via .NET Core CLI:
dotnet add package Altinn.ApiClients.Dialogporten
This package needs some configuration to work. The configuration is done through the DialogportenSettings class. The settings are as follows:
BaseUri - The base URI of the Dialogporten API.ThrowOnPublicKeyFetchInit - If true, the client will throw an exception if the public key fetch fails on startup. Default true.Maskinporten - The Maskinporten settings.
ClientId - The client ID (secret).EncodedJwk - The encoded JWK (secret).Environment - The environment (test/prod).Scope - Whitespace separated list of scopes to use against Dialogporten.IServiceCollectionThere are two ways to register
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDialogportenClient(x =>
{
x.BaseUri = "https://platform.tt02.altinn.no/dialogporten";
// x.ThrowOnPublicKeyFetchInit = false;
x.Maskinporten.ClientId = "YOUR_CLIENT_ID";
x.Maskinporten.EncodedJwk = "YOUR_ENCODED_JWK";
x.Maskinporten.Environment = "test";
x.Maskinporten.Scope = "digdir:dialogporten.serviceprovider digdir:dialogporten.serviceprovider.search";
}
var builder = WebApplication.CreateBuilder(args);
var dialogportenSettings = builder.Configuration
.GetSection("DialogportenSettings")
.Get<DialogportenSettings>()!;
builder.Services.AddDialogportenClient(dialogportenSettings);
In this case, the configuration should look like this:
{
"DialogportenSettings": {
"BaseUri": "https://platform.tt02.altinn.no/dialogporten",
// "ThrowOnPublicKeyFetchInit": false,
"Maskinporten": {
"ClientId": "YOUR_CLIENT_ID",
"EncodedJwk": "YOUR_ENCODED_JWK",
"Environment": "test",
"Scope": "digdir:dialogporten.serviceprovider digdir:dialogporten.serviceprovider.search"
}
}
}
The following services are available after registration:
A background service (IHostedService) is also registered that periodically fetches the public key from the Dialogporten API. This is required to validate dialog token signatures.
See for examples on how to use the services.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.117.3 | 33 | 6/18/2026 |
| 1.117.3-rc | 24 | 6/17/2026 |
| 1.117.3-alpha.1781819871 | 0 | 6/18/2026 |
| 1.117.3-alpha.1781780547 | 0 | 6/18/2026 |
| 1.117.2 | 250 | 6/16/2026 |
| 1.117.2-rc | 24 | 6/15/2026 |
| 1.117.2-alpha.1781517499 | 23 | 6/15/2026 |
| 1.117.1-rc | 24 | 6/9/2026 |
| 1.117.1-alpha.1781164099 | 25 | 6/11/2026 |
| 1.117.1-alpha.1781004626 | 25 | 6/9/2026 |
| 1.117.0 | 152 | 6/5/2026 |
| 1.117.0-rc | 23 | 6/5/2026 |
| 1.117.0-alpha.1780990524 | 27 | 6/9/2026 |
| 1.116.0 | 233 | 6/3/2026 |
| 1.116.0-rc | 26 | 6/3/2026 |
| 1.116.0-alpha.1780568426 | 25 | 6/4/2026 |
| 1.115.6 | 100 | 6/2/2026 |
| 1.115.6-alpha.1780495668 | 25 | 6/3/2026 |
| 1.115.6-alpha.1780407069 | 24 | 6/2/2026 |
| 1.115.5-rc | 31 | 5/27/2026 |