VOOZH about

URL: https://www.nuget.org/packages/Altinn.ApiClients.Dialogporten/

⇱ NuGet Gallery | Altinn.ApiClients.Dialogporten 1.117.3




Altinn.ApiClients.Dialogporten 1.117.3

dotnet add package Altinn.ApiClients.Dialogporten --version 1.117.3
 
 
NuGet\Install-Package Altinn.ApiClients.Dialogporten -Version 1.117.3
 
 
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.117.3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Altinn.ApiClients.Dialogporten" Version="1.117.3" />
 
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.117.3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Altinn.ApiClients.Dialogporten, 1.117.3"
 
 
#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.117.3
 
 
#: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.117.3
 
Install as a Cake Addin
#tool nuget:?package=Altinn.ApiClients.Dialogporten&version=1.117.3
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.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:

  • - Used to interact with the Dialogporten ServiceOwner API.
  • - Used to validate Dialogporten tokens.

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

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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.117.3 33 6/18/2026
1.117.3-rc 24 6/17/2026
1.117.3-alpha.1781819871 0 6/18/2026
1.117.3-alpha.1781780547 0 6/18/2026
1.117.2 250 6/16/2026
1.117.2-rc 24 6/15/2026
1.117.2-alpha.1781517499 23 6/15/2026
1.117.1-rc 24 6/9/2026
1.117.1-alpha.1781164099 25 6/11/2026
1.117.1-alpha.1781004626 25 6/9/2026
1.117.0 152 6/5/2026
1.117.0-rc 23 6/5/2026
1.117.0-alpha.1780990524 27 6/9/2026
1.116.0 233 6/3/2026
1.116.0-rc 26 6/3/2026
1.116.0-alpha.1780568426 25 6/4/2026
1.115.6 100 6/2/2026
1.115.6-alpha.1780495668 25 6/3/2026
1.115.6-alpha.1780407069 24 6/2/2026
1.115.5-rc 31 5/27/2026
Loading failed