Skip to content

Commit 3239f0e

Browse files
committed
sonar qube issues
1 parent 3449112 commit 3239f0e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

application/CohortManager/src/Functions/Shared/Common/Authentication/CIS2AuthMiddleware.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ namespace Common;
55
using Microsoft.Azure.Functions.Worker.Middleware;
66
using Microsoft.Extensions.Logging;
77

8-
public class CIS2AuthMiddleware : IFunctionsWorkerMiddleware
8+
public class Cis2AuthMiddleware : IFunctionsWorkerMiddleware
99
{
1010

11-
private readonly ILogger<CIS2AuthMiddleware> _logger;
11+
private readonly ILogger<Cis2AuthMiddleware> _logger;
1212
private readonly ICreateResponse _createResponse;
1313
private readonly IAuthenticationService _authService;
1414

15-
public CIS2AuthMiddleware(ILogger<CIS2AuthMiddleware> logger, ICreateResponse createResponse, IAuthenticationService authService)
15+
public Cis2AuthMiddleware(ILogger<Cis2AuthMiddleware> logger, ICreateResponse createResponse, IAuthenticationService authService)
1616
{
1717
_logger = logger;
1818
_createResponse = createResponse;

application/CohortManager/src/Functions/Shared/Common/Authentication/JwtAuthentication.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ namespace Common;
77
using System.IdentityModel.Tokens.Jwt;
88
using Microsoft.Extensions.Logging;
99

10-
public class JWTAuthentication : IAuthenticationService
10+
public class JwtAuthentication : IAuthenticationService
1111
{
12-
private readonly ILogger<JWTAuthentication> _logger;
12+
private readonly ILogger<JwtAuthentication> _logger;
1313
private readonly AuthConfig _authConfig;
1414
private readonly ConfigurationManager<OpenIdConnectConfiguration> _configurationManager;
1515

1616

17-
public JWTAuthentication(IOptions<AuthConfig> authConfig, ILogger<JWTAuthentication> logger)
17+
public JwtAuthentication(IOptions<AuthConfig> authConfig, ILogger<JwtAuthentication> logger)
1818
{
1919
_authConfig = authConfig.Value;
2020
_logger = logger;

application/CohortManager/src/Functions/Shared/Common/Extensions/AuthenticationExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public static IHostBuilder AddAuthentication(this IHostBuilder hostBuilder)
1111
hostBuilder.AddConfiguration<AuthConfig>();
1212
hostBuilder.ConfigureFunctionsWorkerDefaults(workerOptions =>
1313
{
14-
workerOptions.UseMiddleware<CIS2AuthMiddleware>();
14+
workerOptions.UseMiddleware<Cis2AuthMiddleware>();
1515
});
1616
hostBuilder.ConfigureServices((context, services) =>
1717
{
18-
services.AddSingleton<IAuthenticationService, JWTAuthentication>();
18+
services.AddSingleton<IAuthenticationService, JwtAuthentication>();
1919
});
2020
return hostBuilder;
2121
}

0 commit comments

Comments
 (0)