Altinn.ApiClients.Dialogporten 1.68.0-rc

This is a prerelease version of Altinn.ApiClients.Dialogporten.
This package has a SemVer 2.0.0 package version: 1.68.0-rc+1cd5d02.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Altinn.ApiClients.Dialogporten --version 1.68.0-rc
                    
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.68.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.68.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.68.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.68.0-rc
                    
#r "nuget: Altinn.ApiClients.Dialogporten, 1.68.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.68.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.68.0-rc&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.68.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 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.73.6-rc 22 7/16/2025
1.73.5-rc 27 7/15/2025
1.73.5-alpha.1752655491 24 7/16/2025
1.73.4-alpha.1752250621 27 7/11/2025
1.73.3 104 7/11/2025
1.73.1-rc 31 7/10/2025
1.73.0 140 7/9/2025
1.73.0-rc 30 7/9/2025
1.73.0-alpha.1752090409 26 7/9/2025
1.72.1-alpha.1752052556 31 7/9/2025
1.72.1-alpha.1751971763 26 7/8/2025
1.71.0-alpha.1751620780 27 7/4/2025
1.71.0-alpha.1750940009 38 6/26/2025
1.70.0-alpha.1750920108 34 6/26/2025
1.70.0-alpha.1750836249 36 6/25/2025
1.70.0-alpha.1750339085 34 6/19/2025
1.70.0-alpha.1750321635 35 6/19/2025
1.70.0-alpha.1750275375 34 6/18/2025
1.70.0-alpha.1750171268 39 6/17/2025
1.69.1 172 6/17/2025
1.69.1-rc 37 6/17/2025
1.68.2 289 6/10/2025
1.68.2-rc 33 6/10/2025
1.68.2-alpha.1750015011 28 6/15/2025
1.68.2-alpha.1749743081 31 6/12/2025
1.68.1 283 6/10/2025
1.68.1-alpha.1749588028 34 6/10/2025
1.68.0-rc 33 6/6/2025
1.67.1-alpha.1749110035 31 6/5/2025
1.67.0 153 6/2/2025
1.67.0-rc 34 6/2/2025
1.66.3-alpha.1748695995 35 5/31/2025
1.66.2-rc 35 5/26/2025
1.66.0 108 5/23/2025
1.66.0-rc 37 5/23/2025
1.66.0-alpha.1748244040 37 5/26/2025
1.65.1-rc 32 5/12/2025
1.65.1-alpha.1747921206 31 5/22/2025
1.65.1-alpha.1747920449 29 5/22/2025
1.65.1-alpha.1747643420 34 5/19/2025
1.65.1-alpha.1747333382 33 5/15/2025
1.65.1-alpha.1747215472 31 5/14/2025
1.65.1-alpha.1747057056 34 5/12/2025
1.65.0-alpha.1746787544 40 5/9/2025
1.64.4 159 5/8/2025
1.64.2-rc 37 5/5/2025
1.64.1-alpha.1746453999 41 5/5/2025
1.63.0 287 4/22/2025
1.63.0-rc 47 4/22/2025
1.62.5-rc 39 4/17/2025
1.62.5-alpha.1744900003 53 4/17/2025
1.62.5-alpha.1744881751 47 4/17/2025
1.62.2 167 4/9/2025
1.62.2-rc 51 4/9/2025
1.62.1 114 4/4/2025
1.62.1-alpha.1744214939 48 4/9/2025
1.62.0-rc 48 4/3/2025
1.61.1-rc 44 4/1/2025
1.61.1-alpha.1743668815 44 4/3/2025
1.61.0-alpha.1743515770 45 4/1/2025
1.60.2 467 3/26/2025
1.60.0-rc 40 3/24/2025
1.58.2 149 3/16/2025
1.58.1-rc 82 3/12/2025
1.58.0 184 3/11/2025
1.58.0-rc 71 3/11/2025
1.57.7-alpha.1741713943 69 3/11/2025
1.57.7-alpha.1741694223 80 3/11/2025
1.57.6 227 3/7/2025
1.57.5 223 3/6/2025
1.57.3-rc 187 3/5/2025
1.57.2 206 3/3/2025
1.57.2-rc 173 3/3/2025
1.57.2-alpha.1741078722 167 3/4/2025
1.57.1 98 2/28/2025
1.57.1-rc 159 2/28/2025
1.57.1-alpha.1741001404 153 3/3/2025
1.57.0-rc 155 2/28/2025
1.56.1 284 2/27/2025
1.56.1-rc 153 2/27/2025
1.56.1-alpha.1740730281 161 2/28/2025
1.56.1-alpha.1740655679 154 2/27/2025
1.56.0 131 2/26/2025
1.56.0-rc 168 2/26/2025
1.55.5-rc 156 2/26/2025
1.55.4 120 2/24/2025
1.55.4-rc 148 2/24/2025
1.55.4-alpha.1740568876 153 2/26/2025
1.55.4-alpha.1740502378 140 2/25/2025
1.55.4-alpha.1740471422 155 2/25/2025
1.55.3-rc 98 2/23/2025
1.55.3-alpha.1740409405 142 2/24/2025
1.55.2 111 2/22/2025
1.55.2-rc 99 2/22/2025
1.55.1-rc.d91eacb 76 2/21/2025
1.55.1-rc.c9e10db 78 2/22/2025
1.55.1-rc 99 2/21/2025
1.55.0 123 2/20/2025
1.55.0-rc 108 2/20/2025
1.54.0-rc.2458d6a 79 2/20/2025
1.54.0-rc 147 2/20/2025