You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Digdir.Library.Dialogporten.WebApiClient/IDialogTokenValidator.cs
+48
Original file line number
Diff line number
Diff line change
@@ -3,25 +3,73 @@
3
3
4
4
namespaceAltinn.ApiClients.Dialogporten;
5
5
6
+
/// <summary>
7
+
/// Represents a service that can validate a dialog token.
8
+
/// </summary>
6
9
publicinterfaceIDialogTokenValidator
7
10
{
11
+
/// <summary>
12
+
/// Validates a dialog token.
13
+
/// </summary>
14
+
/// <param name="token">The token to validate.</param>
15
+
/// <param name="dialogId">The optional dialog ID associated with the token. If the token does not represent this ID, the validation will fail.</param>
16
+
/// <param name="requiredActions">The optional list of required actions for the token.</param>
The following services are available after registration:
74
+
-[`Altinn.ApiClients.Dialogporten.Features.V1.IServiceownerApi`](./Features/V1/RefitterInterface.cs) - Used to interact with the Dialogporten ServiceOwner API.
75
+
-[`Altinn.ApiClients.Dialogporten.IDialogTokenValidator`](IDialogTokenValidator.cs) - Used to validate Dialogporten tokens.
40
76
41
-
varservices=newServiceCollection();
77
+
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.
0 commit comments