From 9110fa03ca7e140fef604857def6c4473e132e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Mon, 2 Dec 2024 10:47:36 +0100 Subject: [PATCH 1/2] test --- .../InfrastructureExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs index 77ed4665d..23289ef81 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/InfrastructureExtensions.cs @@ -340,7 +340,9 @@ private static IServiceCollection ConfigureFusionCache(this IServiceCollection s // This will stop deserialization exceptions to be re-thrown, which will cause the factory to run as if // the cache entry was not found. This avoids crashes which otherwise would happen if entities that // are cached are changed in a way that makes them incompatible with the cached version. - ReThrowSerializationExceptions = false + ReThrowSerializationExceptions = false, + + EnableAutoClone = true }) .WithRegisteredSerializer() // If Redis is disabled (eg. in local development or non-web runtimes), we must instruct FusionCache to From 453c5ce7c2fa8374b6e53cd5d0f19ba0714245ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Mon, 2 Dec 2024 11:03:52 +0100 Subject: [PATCH 2/2] enable flattening --- .../Altinn/Authorization/AltinnAuthorizationClient.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs index 630305a30..22465274a 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/Altinn/Authorization/AltinnAuthorizationClient.cs @@ -121,9 +121,7 @@ void Flatten(AuthorizedParty party, AuthorizedParty? parent = null) if (parent != null) party.ParentParty = parent.Party; - // TODO: https://github.com/digdir/dialogporten/issues/1533 - // Disabling this for now, fixes https://github.com/digdir/dialogporten/issues/1226 - // party.SubParties = []; + party.SubParties = []; flattenedAuthorizedParties.AuthorizedParties.Add(party); }