Skip to content

Commit

Permalink
fix: add correct baseuri for altinn events (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas authored Feb 27, 2024
1 parent 21b2401 commit 74940ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static IServiceCollection AddInfrastructure(this IServiceCollection servi
x => x.ClientSettings.ExhangeToAltinnToken = true)
.ConfigureHttpClient((services, client) =>
{
client.BaseAddress = services.GetRequiredService<IOptions<InfrastructureSettings>>().Value.Altinn.BaseUri;
client.BaseAddress = services.GetRequiredService<IOptions<InfrastructureSettings>>().Value.Altinn.EventsBaseUri;
});
services.AddHttpClient<IResourceRegistry, ResourceRegistryClient>((services, client) =>
client.BaseAddress = services.GetRequiredService<IOptions<InfrastructureSettings>>().Value.Altinn.BaseUri)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public sealed class InfrastructureSettings
public sealed class AltinnPlatformSettings
{
public required Uri BaseUri { get; init; }
public required Uri EventsBaseUri { get; init; }
public required string SubscriptionKey { get; init; }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"Altinn": {
"BaseUri": "https://platform.tt02.altinn.no/",
"EventsBaseUri": "https://platform.tt02.altinn.no/",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/Digdir.Domain.Dialogporten.WebApi/appsettings.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "Secret webhook sink URL in source key vault",
"BaseUri": "https://platform.tt02.altinn.no/",
"EventsBaseUri": "Secret webhook sink URL in source key vault",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
Expand Down

0 comments on commit 74940ab

Please sign in to comment.