Altinn.ApiClients.Dialogporten 1.73.6-rc

This is a prerelease version of Altinn.ApiClients.Dialogporten.
This package has a SemVer 2.0.0 package version: 1.73.6-rc+63b0bc7.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Altinn.ApiClients.Dialogporten --version 1.73.6-rc
                    
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.73.6-rc
                    
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.73.6-rc" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Altinn.ApiClients.Dialogporten" Version="1.73.6-rc" />
                    
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.73.6-rc
                    
#r "nuget: Altinn.ApiClients.Dialogporten, 1.73.6-rc"
                    
#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.73.6-rc
                    
#: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.73.6-rc&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.73.6-rc&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.77.0 11 8/11/2025
1.77.0-rc 7 8/11/2025
1.76.2 10 8/10/2025
1.76.2-rc 6 8/10/2025
1.76.2-alpha.1754913967 9 8/11/2025
1.76.2-alpha.1754913150 8 8/11/2025
1.76.1-alpha.1754854840 5 8/10/2025
1.76.0 168 8/5/2025
1.76.0-rc 8 8/5/2025
1.75.0-rc 10 8/4/2025
1.75.0-alpha.1754309088 7 8/4/2025
1.74.0-rc 9 7/30/2025
1.74.0-alpha.1753979662 8 7/31/2025
1.73.6-rc 27 7/16/2025
1.73.6-alpha.1753860604 12 7/30/2025
1.73.5-rc 29 7/15/2025
1.73.5-alpha.1752655491 26 7/16/2025
1.73.4-alpha.1752250621 28 7/11/2025
1.73.3 107 7/11/2025
1.73.1-rc 32 7/10/2025
1.73.0 142 7/9/2025
1.73.0-rc 31 7/9/2025
1.73.0-alpha.1752090409 27 7/9/2025
1.72.1-alpha.1752052556 32 7/9/2025
1.72.1-alpha.1751971763 27 7/8/2025
1.71.0-alpha.1751620780 28 7/4/2025
1.71.0-alpha.1750940009 40 6/26/2025
1.70.0-alpha.1750920108 35 6/26/2025
1.70.0-alpha.1750836249 37 6/25/2025
1.70.0-alpha.1750339085 36 6/19/2025
1.70.0-alpha.1750321635 37 6/19/2025
1.70.0-alpha.1750275375 35 6/18/2025
1.70.0-alpha.1750171268 41 6/17/2025
1.69.1 174 6/17/2025
1.69.1-rc 38 6/17/2025
1.68.2 292 6/10/2025
1.68.2-rc 34 6/10/2025
1.68.2-alpha.1750015011 30 6/15/2025
1.68.2-alpha.1749743081 32 6/12/2025
1.68.1 285 6/10/2025
1.68.1-alpha.1749588028 37 6/10/2025
1.68.0-rc 34 6/6/2025
1.67.1-alpha.1749110035 33 6/5/2025
1.67.0 155 6/2/2025
1.67.0-rc 39 6/2/2025
1.66.3-alpha.1748695995 39 5/31/2025
1.66.2-rc 36 5/26/2025
1.66.0 112 5/23/2025
1.66.0-rc 38 5/23/2025
1.66.0-alpha.1748244040 39 5/26/2025
1.65.1-rc 34 5/12/2025
1.65.1-alpha.1747921206 32 5/22/2025
1.65.1-alpha.1747920449 30 5/22/2025
1.65.1-alpha.1747643420 36 5/19/2025
1.65.1-alpha.1747333382 34 5/15/2025
1.65.1-alpha.1747215472 32 5/14/2025
1.65.1-alpha.1747057056 35 5/12/2025
1.65.0-alpha.1746787544 41 5/9/2025
1.64.4 160 5/8/2025
1.64.2-rc 41 5/5/2025
1.64.1-alpha.1746453999 43 5/5/2025
1.63.0 288 4/22/2025
1.63.0-rc 48 4/22/2025
1.62.5-rc 40 4/17/2025
1.62.5-alpha.1744900003 55 4/17/2025
1.62.5-alpha.1744881751 50 4/17/2025
1.62.2 168 4/9/2025
1.62.2-rc 52 4/9/2025
1.62.1 116 4/4/2025
1.62.1-alpha.1744214939 49 4/9/2025
1.62.0-rc 49 4/3/2025
1.61.1-rc 45 4/1/2025
1.61.1-alpha.1743668815 45 4/3/2025
1.61.0-alpha.1743515770 47 4/1/2025
1.60.2 469 3/26/2025
1.60.0-rc 42 3/24/2025
1.58.2 150 3/16/2025
1.58.1-rc 85 3/12/2025
1.58.0 185 3/11/2025
1.58.0-rc 72 3/11/2025
1.57.7-alpha.1741713943 70 3/11/2025
1.57.7-alpha.1741694223 81 3/11/2025
1.57.6 229 3/7/2025
1.57.5 224 3/6/2025
1.57.3-rc 189 3/5/2025
1.57.2 207 3/3/2025
1.57.2-rc 174 3/3/2025
1.57.2-alpha.1741078722 168 3/4/2025
1.57.1 99 2/28/2025
1.57.1-rc 161 2/28/2025
1.57.1-alpha.1741001404 155 3/3/2025
1.57.0-rc 158 2/28/2025
1.56.1 286 2/27/2025
1.56.1-rc 155 2/27/2025
1.56.1-alpha.1740730281 162 2/28/2025
1.56.1-alpha.1740655679 155 2/27/2025
1.56.0 132 2/26/2025
1.56.0-rc 170 2/26/2025
1.55.5-rc 157 2/26/2025
1.55.4 121 2/24/2025
1.55.4-rc 149 2/24/2025
1.55.4-alpha.1740568876 154 2/26/2025
1.55.4-alpha.1740502378 141 2/25/2025
1.55.4-alpha.1740471422 156 2/25/2025
1.55.3-rc 99 2/23/2025
1.55.3-alpha.1740409405 143 2/24/2025
1.55.2 112 2/22/2025
1.55.2-rc 100 2/22/2025
1.55.1-rc.d91eacb 79 2/21/2025
1.55.1-rc.c9e10db 79 2/22/2025
1.55.1-rc 100 2/21/2025
1.55.0 124 2/20/2025
1.55.0-rc 110 2/20/2025
1.54.0-rc.2458d6a 81 2/20/2025
1.54.0-rc 148 2/20/2025