Skip to content

Commit

Permalink
Remove logHttp parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Gachapen committed Jan 20, 2025
1 parent f4da276 commit d6f3990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Auth/SystemAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ public class SystemAuthenticator : IDisposable
private readonly HttpClient _httpClient;
private readonly ConfigurationManager<OpenIdConnectConfiguration> _oidcConfigManager;

public SystemAuthenticator(SystemClientData clientData, bool logHttp = false)
public SystemAuthenticator(SystemClientData clientData)
{
_clientData = clientData;
_httpClient = logHttp
? new HttpClient(new RawHttpLoggingHandler(new HttpClientHandler()))
: new HttpClient();
_httpClient = new HttpClient();
_oidcConfigManager = new ConfigurationManager<OpenIdConnectConfiguration>(
$"{_clientData.Authority}/.well-known/openid-configuration",
new OpenIdConnectConfigurationRetriever()
Expand Down
6 changes: 2 additions & 4 deletions Auth/UserAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ public sealed class UserAuthenticator : IDisposable
private readonly HttpClient _httpClient;
private readonly OidcClient _oidcClient;

public UserAuthenticator(UserClientData clientData, string htmlTitle, string htmlBody, bool logHttp = false)
public UserAuthenticator(UserClientData clientData, string htmlTitle, string htmlBody)
{
_clientData = clientData;
_httpClient = logHttp
? new HttpClient(new RawHttpLoggingHandler(new HttpClientHandler()))
: new HttpClient();
_httpClient = new HttpClient();
_oidcClient = CreateOidcClient(htmlTitle, htmlBody);
}

Expand Down

0 comments on commit d6f3990

Please sign in to comment.