Altinn.ApiClients.Dialogporten 1.75.0-rc

This is a prerelease version of Altinn.ApiClients.Dialogporten.
This package has a SemVer 2.0.0 package version: 1.75.0-rc+339ffad.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Altinn.ApiClients.Dialogporten --version 1.75.0-rc
                    
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.75.0-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.75.0-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.75.0-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.75.0-rc
                    
#r "nuget: Altinn.ApiClients.Dialogporten, 1.75.0-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.75.0-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.75.0-rc&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.75.0-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.79.4-rc 6 8/15/2025
1.79.1 44 8/15/2025
1.79.0 54 8/15/2025
1.79.0-rc 7 8/15/2025
1.79.0-alpha.1755261168 6 8/15/2025
1.78.0-alpha.1755244441 7 8/15/2025
1.77.0 90 8/11/2025
1.77.0-rc 8 8/11/2025
1.76.2 87 8/10/2025
1.76.2-rc 7 8/10/2025
1.76.2-alpha.1754913967 9 8/11/2025
1.76.2-alpha.1754913150 10 8/11/2025
1.76.1-alpha.1754854840 5 8/10/2025
1.76.0 210 8/5/2025
1.76.0-rc 25 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 9 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 29 7/11/2025
1.73.3 108 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 28 7/9/2025
1.72.1-alpha.1752052556 33 7/9/2025
1.72.1-alpha.1751971763 28 7/8/2025
1.71.0-alpha.1751620780 29 7/4/2025
1.71.0-alpha.1750940009 42 6/26/2025
1.70.0-alpha.1750920108 36 6/26/2025
1.70.0-alpha.1750836249 38 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 37 6/18/2025
1.70.0-alpha.1750171268 42 6/17/2025
1.69.1 175 6/17/2025
1.69.1-rc 38 6/17/2025
1.68.2 293 6/10/2025
1.68.2-rc 34 6/10/2025
1.68.2-alpha.1750015011 32 6/15/2025
1.68.2-alpha.1749743081 34 6/12/2025
1.68.1 285 6/10/2025
1.68.1-alpha.1749588028 38 6/10/2025
1.68.0-rc 34 6/6/2025
1.67.1-alpha.1749110035 34 6/5/2025
1.67.0 156 6/2/2025
1.67.0-rc 39 6/2/2025
1.66.3-alpha.1748695995 40 5/31/2025
1.66.2-rc 38 5/26/2025
1.66.0 113 5/23/2025
1.66.0-rc 38 5/23/2025
1.66.0-alpha.1748244040 40 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 33 5/22/2025
1.65.1-alpha.1747643420 36 5/19/2025
1.65.1-alpha.1747333382 35 5/15/2025
1.65.1-alpha.1747215472 33 5/14/2025
1.65.1-alpha.1747057056 37 5/12/2025
1.65.0-alpha.1746787544 42 5/9/2025
1.64.4 160 5/8/2025
1.64.2-rc 42 5/5/2025
1.64.1-alpha.1746453999 44 5/5/2025
1.63.0 292 4/22/2025
1.63.0-rc 49 4/22/2025
1.62.5-rc 41 4/17/2025
1.62.5-alpha.1744900003 56 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 117 4/4/2025
1.62.1-alpha.1744214939 50 4/9/2025
1.62.0-rc 49 4/3/2025
1.61.1-rc 46 4/1/2025
1.61.1-alpha.1743668815 47 4/3/2025
1.61.0-alpha.1743515770 47 4/1/2025
1.60.2 470 3/26/2025
1.60.0-rc 43 3/24/2025
1.58.2 150 3/16/2025
1.58.1-rc 86 3/12/2025
1.58.0 186 3/11/2025
1.58.0-rc 74 3/11/2025
1.57.7-alpha.1741713943 72 3/11/2025
1.57.7-alpha.1741694223 81 3/11/2025
1.57.6 229 3/7/2025
1.57.5 225 3/6/2025
1.57.3-rc 190 3/5/2025
1.57.2 207 3/3/2025
1.57.2-rc 175 3/3/2025
1.57.2-alpha.1741078722 168 3/4/2025
1.57.1 99 2/28/2025
1.57.1-rc 163 2/28/2025
1.57.1-alpha.1741001404 156 3/3/2025
1.57.0-rc 159 2/28/2025
1.56.1 287 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 156 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 122 2/24/2025
1.55.4-rc 151 2/24/2025
1.55.4-alpha.1740568876 154 2/26/2025
1.55.4-alpha.1740502378 142 2/25/2025
1.55.4-alpha.1740471422 158 2/25/2025
1.55.3-rc 100 2/23/2025
1.55.3-alpha.1740409405 144 2/24/2025
1.55.2 113 2/22/2025
1.55.2-rc 106 2/22/2025
1.55.1-rc.d91eacb 80 2/21/2025
1.55.1-rc.c9e10db 79 2/22/2025
1.55.1-rc 101 2/21/2025
1.55.0 125 2/20/2025
1.55.0-rc 112 2/20/2025
1.54.0-rc.2458d6a 81 2/20/2025
1.54.0-rc 149 2/20/2025