Skip to content

Commit

Permalink
Merge branch 'main' into 11-19-backend-layoutset-tasktype-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondyr authored Nov 21, 2024
2 parents 4bcc03d + 3c0cfab commit ac70de4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion backend/src/Designer/Infrastructure/ServiceRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public static IServiceCollection RegisterServiceImplementations(this IServiceCol
services.AddTransient<IAppDevelopmentService, AppDevelopmentService>();
services.AddTransient<IPreviewService, PreviewService>();
services.AddTransient<IDataService, DataService>();
services.AddTransient<IResourceRegistry, ResourceRegistryService>();
services.AddTransient<IProcessModelingService, ProcessModelingService>();
services.AddTransient<IImagesService, ImagesService>();
services.RegisterDatamodeling(configuration);
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Designer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void ConfigureServices(IServiceCollection services, IConfiguration configuration
services.Configure<MaskinportenClientSettings>(configuration.GetSection("MaskinportenClientSettings"));
var maskinPortenClientName = "MaskinportenClient";
services.RegisterMaskinportenClientDefinition<MaskinPortenClientDefinition>(maskinPortenClientName, configuration.GetSection("MaskinportenClientSettings"));
services.AddHttpClient<IResourceRegistry, ResourceRegistryService>().AddMaskinportenHttpMessageHandler<MaskinPortenClientDefinition>(maskinPortenClientName);
services.AddHttpClient<IResourceRegistry, ResourceRegistryService>();

var maskinportenSettings = new MaskinportenClientSettings();
configuration.GetSection("MaskinportenClientSettings").Bind(maskinportenSettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public async Task<ActionResult> PublishServiceResource(ServiceResource serviceRe
{
publishResourceToResourceRegistryUrl = $"{GetResourceRegistryBaseUrl(env)}{_platformSettings.ResourceRegistryUrl}";
getResourceRegistryUrl = $"{publishResourceToResourceRegistryUrl}/{serviceResource.Identifier}";
tokenResponse = await _maskinPortenService.ExchangeToAltinnToken(tokenResponse, env);
fullWritePolicyToResourceRegistryUrl = $"{GetResourceRegistryBaseUrl(env)}{_platformSettings.ResourceRegistryUrl}/{serviceResource.Identifier}/policy";
}
else
Expand Down

0 comments on commit ac70de4

Please sign in to comment.