Altinn.ApiClients.Dialogporten 1.86.4-alpha.1760959560

This is a prerelease version of Altinn.ApiClients.Dialogporten.
This package has a SemVer 2.0.0 package version: 1.86.4-alpha.1760959560+2268566.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Altinn.ApiClients.Dialogporten --version 1.86.4-alpha.1760959560
                    
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.86.4-alpha.1760959560
                    
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.4-alpha.1760959560" />
                    
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.4-alpha.1760959560" />
                    
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.4-alpha.1760959560
                    
#r "nuget: Altinn.ApiClients.Dialogporten, 1.86.4-alpha.1760959560"
                    
#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.4-alpha.1760959560
                    
#: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.4-alpha.1760959560&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.86.4-alpha.1760959560&prerelease
                    
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.88.3 77 10/31/2025
1.88.3-rc 26 10/31/2025
1.88.2-alpha.1761902616 26 10/31/2025
1.87.2 165 10/23/2025
1.86.5-rc 27 10/20/2025
1.86.4-rc 27 10/20/2025
1.86.4-alpha.1760964367 29 10/20/2025
1.86.4-alpha.1760959560 25 10/20/2025
1.86.3-alpha.1760896541 23 10/19/2025
1.86.2-rc 24 10/16/2025
1.86.1-alpha.1760517500 25 10/15/2025
1.86.1-alpha.1760514771 28 10/15/2025
1.86.0 171 10/9/2025
1.86.0-rc 30 10/8/2025
1.85.0-alpha.1759935165 29 10/8/2025
1.84.0-rc 29 10/7/2025
1.83.3-alpha.1759835957 28 10/7/2025
1.83.1 172 10/2/2025
1.83.0-rc 27 10/2/2025
1.82.0 166 9/30/2025
1.82.0-rc 31 9/30/2025
1.81.2-alpha.1759134841 31 9/29/2025
1.81.0-rc 165 9/22/2025
1.80.7-alpha.1758450271 61 9/21/2025
1.79.8 291 8/28/2025
1.79.8-rc 29 8/28/2025
1.79.7-alpha.1756308765 31 8/27/2025
1.79.4-rc 36 8/15/2025
1.79.1 155 8/15/2025
1.79.0 126 8/15/2025
1.79.0-rc 33 8/15/2025
1.79.0-alpha.1755261168 37 8/15/2025
1.78.0-alpha.1755244441 33 8/15/2025
1.77.0 175 8/11/2025
1.77.0-rc 34 8/11/2025
1.76.2 215 8/10/2025
1.76.2-rc 31 8/10/2025
1.76.2-alpha.1754913967 31 8/11/2025
1.76.2-alpha.1754913150 32 8/11/2025
1.76.1-alpha.1754854840 29 8/10/2025
1.76.0 251 8/5/2025
1.76.0-rc 34 8/5/2025
1.75.0-rc 17 8/4/2025
1.75.0-alpha.1754309088 13 8/4/2025
1.74.0-rc 13 7/30/2025
1.74.0-alpha.1753979662 15 7/31/2025
1.73.6-rc 36 7/16/2025
1.73.6-alpha.1753860604 16 7/30/2025
1.73.5-rc 37 7/15/2025
1.73.5-alpha.1752655491 37 7/16/2025
1.73.4-alpha.1752250621 37 7/11/2025
1.73.3 148 7/11/2025
1.73.1-rc 40 7/10/2025
1.73.0 183 7/9/2025
1.73.0-rc 40 7/9/2025
1.73.0-alpha.1752090409 37 7/9/2025
1.72.1-alpha.1752052556 42 7/9/2025
1.72.1-alpha.1751971763 35 7/8/2025
1.71.0-alpha.1751620780 38 7/4/2025
1.71.0-alpha.1750940009 60 6/26/2025
1.70.0-alpha.1750920108 58 6/26/2025
1.70.0-alpha.1750836249 61 6/25/2025
1.70.0-alpha.1750339085 60 6/19/2025
1.70.0-alpha.1750321635 63 6/19/2025
1.70.0-alpha.1750275375 52 6/18/2025
1.70.0-alpha.1750171268 70 6/17/2025
1.69.1 273 6/17/2025
1.69.1-rc 59 6/17/2025
1.68.2 342 6/10/2025
1.68.2-rc 49 6/10/2025
1.68.2-alpha.1750015011 50 6/15/2025
1.68.2-alpha.1749743081 50 6/12/2025
1.68.1 335 6/10/2025
1.68.1-alpha.1749588028 55 6/10/2025
1.68.0-rc 54 6/6/2025
1.67.1-alpha.1749110035 51 6/5/2025
1.67.0 187 6/2/2025
1.67.0-rc 55 6/2/2025
1.66.3-alpha.1748695995 61 5/31/2025
1.66.2-rc 52 5/26/2025
1.66.0 162 5/23/2025
1.66.0-rc 55 5/23/2025
1.66.0-alpha.1748244040 57 5/26/2025
1.65.1-rc 56 5/12/2025
1.65.1-alpha.1747921206 53 5/22/2025
1.65.1-alpha.1747920449 50 5/22/2025
1.65.1-alpha.1747643420 63 5/19/2025
1.65.1-alpha.1747333382 54 5/15/2025
1.65.1-alpha.1747215472 52 5/14/2025
1.65.1-alpha.1747057056 62 5/12/2025
1.65.0-alpha.1746787544 54 5/9/2025
1.64.4 206 5/8/2025
1.64.2-rc 63 5/5/2025
1.64.1-alpha.1746453999 59 5/5/2025
1.63.0 730 4/22/2025
1.63.0-rc 69 4/22/2025
1.62.5-rc 62 4/17/2025
1.62.5-alpha.1744900003 70 4/17/2025
1.62.5-alpha.1744881751 63 4/17/2025
1.62.2 212 4/9/2025
1.62.2-rc 72 4/9/2025
1.62.1 159 4/4/2025
1.62.1-alpha.1744214939 71 4/9/2025
1.62.0-rc 76 4/3/2025
1.61.1-rc 62 4/1/2025
1.61.1-alpha.1743668815 66 4/3/2025
1.61.0-alpha.1743515770 66 4/1/2025
1.60.2 520 3/26/2025
1.60.0-rc 62 3/24/2025
1.58.2 194 3/16/2025
1.58.1-rc 101 3/12/2025
1.58.0 249 3/11/2025
1.58.0-rc 96 3/11/2025
1.57.7-alpha.1741713943 93 3/11/2025
1.57.7-alpha.1741694223 101 3/11/2025
1.57.6 269 3/7/2025
1.57.5 269 3/6/2025
1.57.3-rc 214 3/5/2025
1.57.2 254 3/3/2025
1.57.2-rc 192 3/3/2025
1.57.2-alpha.1741078722 198 3/4/2025
1.57.1 144 2/28/2025
1.57.1-rc 182 2/28/2025
1.57.1-alpha.1741001404 177 3/3/2025
1.57.0-rc 179 2/28/2025
1.56.1 326 2/27/2025
1.56.1-rc 179 2/27/2025
1.56.1-alpha.1740730281 181 2/28/2025
1.56.1-alpha.1740655679 170 2/27/2025
1.56.0 178 2/26/2025
1.56.0-rc 191 2/26/2025
1.55.5-rc 178 2/26/2025
1.55.4 159 2/24/2025
1.55.4-rc 167 2/24/2025
1.55.4-alpha.1740568876 178 2/26/2025
1.55.4-alpha.1740502378 162 2/25/2025
1.55.4-alpha.1740471422 181 2/25/2025
1.55.3-rc 148 2/23/2025
1.55.3-alpha.1740409405 167 2/24/2025
1.55.2 156 2/22/2025
1.55.2-rc 156 2/22/2025
1.55.1-rc.d91eacb 112 2/21/2025
1.55.1-rc.c9e10db 106 2/22/2025
1.55.1-rc 132 2/21/2025
1.55.0 168 2/20/2025
1.55.0-rc 145 2/20/2025
1.54.0-rc.2458d6a 106 2/20/2025
1.54.0-rc 193 2/20/2025