Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilhau committed Oct 24, 2024
1 parent 4a8a034 commit 92b9a68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.

This file was deleted.

12 changes: 0 additions & 12 deletions backend/src/Equinor.ProjectExecutionPortal.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
using Equinor.ProjectExecutionPortal.WebApi.DiModules;
using Equinor.ProjectExecutionPortal.WebApi.Middleware;
using FluentValidation.AspNetCore;
using Fusion.Integration;
using Fusion.Integration.Apps.Configuration;
using Fusion.Integration.Http;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.Authorization;
using Microsoft.Identity.Web;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerUI;
using Constants = Equinor.ProjectExecutionPortal.WebApi.Constants;

const string AllowAllOriginsCorsPolicy = "AllowAllOrigins";

Expand Down Expand Up @@ -59,15 +56,6 @@
f.DisableClaimsTransformation();
});

// Add http client to the fusion portal api. This can be fetched from the IHttpClientFactory
builder.Services.AddFusionIntegrationHttpClient(Constants.HttpClientPortal, s =>
{
s.UseDelegateToken = true;
s.UseFusionEndpoint(FusionEndpoint.Portal);
});

builder.Services.AddRazorPages();

builder.Services.AddControllers(config =>
{
var policy = new AuthorizationPolicyBuilder()
Expand Down

0 comments on commit 92b9a68

Please sign in to comment.