Altinn.ApiClients.Dialogporten 1.86.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Altinn.ApiClients.Dialogporten --version 1.86.0
                    
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.86.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Altinn.ApiClients.Dialogporten" Version="1.86.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Altinn.ApiClients.Dialogporten" Version="1.86.0" />
                    
Directory.Packages.props
<PackageReference Include="Altinn.ApiClients.Dialogporten" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Altinn.ApiClients.Dialogporten --version 1.86.0
                    
#r "nuget: Altinn.ApiClients.Dialogporten, 1.86.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Altinn.ApiClients.Dialogporten@1.86.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Altinn.ApiClients.Dialogporten&version=1.86.0
                    
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.86.0
                    
Install as a Cake Tool

.NET SDK for Dialogporten ServiceOwner API

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.

Installation

Install the nuget package through Package Manager Console:

Install-Package Altinn.ApiClients.Dialogporten

Or via .NET Core CLI:

dotnet add package Altinn.ApiClients.Dialogporten

Usage

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.

Registering with IServiceCollection

There are two ways to register

Register through action parameter:
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";
}
Register through options instance parameter:
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"
        }
    }
}

Available services

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 sample project for examples on how to use the services.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.86.1-alpha.1760517500 5 10/15/2025
1.86.1-alpha.1760514771 15 10/15/2025
1.86.0 125 10/9/2025
1.86.0-rc 26 10/8/2025
1.85.0-alpha.1759935165 25 10/8/2025
1.84.0-rc 27 10/7/2025
1.83.3-alpha.1759835957 26 10/7/2025
1.83.1 159 10/2/2025
1.83.0-rc 25 10/2/2025
1.82.0 160 9/30/2025
1.82.0-rc 29 9/30/2025
1.81.2-alpha.1759134841 29 9/29/2025
1.81.0-rc 129 9/22/2025
1.80.7-alpha.1758450271 58 9/21/2025
1.79.8 288 8/28/2025
1.79.8-rc 27 8/28/2025
1.79.7-alpha.1756308765 29 8/27/2025
1.79.4-rc 34 8/15/2025
1.79.1 148 8/15/2025
1.79.0 122 8/15/2025
1.79.0-rc 32 8/15/2025
1.79.0-alpha.1755261168 33 8/15/2025
1.78.0-alpha.1755244441 30 8/15/2025
1.77.0 170 8/11/2025
1.77.0-rc 30 8/11/2025
1.76.2 196 8/10/2025
1.76.2-rc 29 8/10/2025
1.76.2-alpha.1754913967 30 8/11/2025
1.76.2-alpha.1754913150 31 8/11/2025
1.76.1-alpha.1754854840 26 8/10/2025
1.76.0 247 8/5/2025
1.76.0-rc 30 8/5/2025
1.75.0-rc 15 8/4/2025
1.75.0-alpha.1754309088 11 8/4/2025
1.74.0-rc 12 7/30/2025
1.74.0-alpha.1753979662 12 7/31/2025
1.73.6-rc 35 7/16/2025
1.73.6-alpha.1753860604 15 7/30/2025
1.73.5-rc 36 7/15/2025
1.73.5-alpha.1752655491 33 7/16/2025
1.73.4-alpha.1752250621 36 7/11/2025
1.73.3 144 7/11/2025
1.73.1-rc 39 7/10/2025
1.73.0 177 7/9/2025
1.73.0-rc 38 7/9/2025
1.73.0-alpha.1752090409 34 7/9/2025
1.72.1-alpha.1752052556 39 7/9/2025
1.72.1-alpha.1751971763 34 7/8/2025
1.71.0-alpha.1751620780 37 7/4/2025
1.71.0-alpha.1750940009 57 6/26/2025
1.70.0-alpha.1750920108 55 6/26/2025
1.70.0-alpha.1750836249 54 6/25/2025
1.70.0-alpha.1750339085 54 6/19/2025
1.70.0-alpha.1750321635 59 6/19/2025
1.70.0-alpha.1750275375 47 6/18/2025
1.70.0-alpha.1750171268 66 6/17/2025
1.69.1 267 6/17/2025
1.69.1-rc 52 6/17/2025
1.68.2 335 6/10/2025
1.68.2-rc 44 6/10/2025
1.68.2-alpha.1750015011 46 6/15/2025
1.68.2-alpha.1749743081 47 6/12/2025
1.68.1 327 6/10/2025
1.68.1-alpha.1749588028 51 6/10/2025
1.68.0-rc 48 6/6/2025
1.67.1-alpha.1749110035 47 6/5/2025
1.67.0 183 6/2/2025
1.67.0-rc 51 6/2/2025
1.66.3-alpha.1748695995 60 5/31/2025
1.66.2-rc 48 5/26/2025
1.66.0 150 5/23/2025
1.66.0-rc 50 5/23/2025
1.66.0-alpha.1748244040 53 5/26/2025
1.65.1-rc 54 5/12/2025
1.65.1-alpha.1747921206 48 5/22/2025
1.65.1-alpha.1747920449 49 5/22/2025
1.65.1-alpha.1747643420 61 5/19/2025
1.65.1-alpha.1747333382 52 5/15/2025
1.65.1-alpha.1747215472 50 5/14/2025
1.65.1-alpha.1747057056 54 5/12/2025
1.65.0-alpha.1746787544 51 5/9/2025
1.64.4 200 5/8/2025
1.64.2-rc 57 5/5/2025
1.64.1-alpha.1746453999 55 5/5/2025
1.63.0 563 4/22/2025
1.63.0-rc 67 4/22/2025
1.62.5-rc 53 4/17/2025
1.62.5-alpha.1744900003 65 4/17/2025
1.62.5-alpha.1744881751 60 4/17/2025
1.62.2 207 4/9/2025
1.62.2-rc 68 4/9/2025
1.62.1 152 4/4/2025
1.62.1-alpha.1744214939 67 4/9/2025
1.62.0-rc 72 4/3/2025
1.61.1-rc 57 4/1/2025
1.61.1-alpha.1743668815 61 4/3/2025
1.61.0-alpha.1743515770 59 4/1/2025
1.60.2 509 3/26/2025
1.60.0-rc 55 3/24/2025
1.58.2 187 3/16/2025
1.58.1-rc 96 3/12/2025
1.58.0 237 3/11/2025
1.58.0-rc 94 3/11/2025
1.57.7-alpha.1741713943 87 3/11/2025
1.57.7-alpha.1741694223 97 3/11/2025
1.57.6 262 3/7/2025
1.57.5 264 3/6/2025
1.57.3-rc 209 3/5/2025
1.57.2 247 3/3/2025
1.57.2-rc 185 3/3/2025
1.57.2-alpha.1741078722 188 3/4/2025
1.57.1 139 2/28/2025
1.57.1-rc 177 2/28/2025
1.57.1-alpha.1741001404 168 3/3/2025
1.57.0-rc 172 2/28/2025
1.56.1 320 2/27/2025
1.56.1-rc 174 2/27/2025
1.56.1-alpha.1740730281 178 2/28/2025
1.56.1-alpha.1740655679 166 2/27/2025
1.56.0 168 2/26/2025
1.56.0-rc 185 2/26/2025
1.55.5-rc 172 2/26/2025
1.55.4 154 2/24/2025
1.55.4-rc 161 2/24/2025
1.55.4-alpha.1740568876 170 2/26/2025
1.55.4-alpha.1740502378 155 2/25/2025
1.55.4-alpha.1740471422 177 2/25/2025
1.55.3-rc 139 2/23/2025
1.55.3-alpha.1740409405 163 2/24/2025
1.55.2 148 2/22/2025
1.55.2-rc 146 2/22/2025
1.55.1-rc.d91eacb 104 2/21/2025
1.55.1-rc.c9e10db 101 2/22/2025
1.55.1-rc 125 2/21/2025
1.55.0 161 2/20/2025
1.55.0-rc 139 2/20/2025
1.54.0-rc.2458d6a 97 2/20/2025
1.54.0-rc 187 2/20/2025