Skip to content

Commit 5dc9ec2

Browse files
committed
Update version, dependencies, and add SHA1 configuration
Updated project version in `XmlDownloader.csproj` to `5.0.13`. Upgraded `Fiscalapi.Credentials` package from `4.0.97` to `4.0.340`. Added `ConfigureAlgorithmForXmlDownloader()` call in `AuthenticateAsync` to set SHA1 algorithm before authentication.
1 parent a7e802f commit 5dc9ec2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

XmlDownloader.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<Version>5.0.12</Version>
7+
<Version>5.0.13</Version>
88
<AssemblyVersion>$(Version)</AssemblyVersion>
99
<FileVersion>$(Version)</FileVersion>
1010
<PackageVersion>$(Version)</PackageVersion>
@@ -33,8 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
37-
<PackageReference Include="Fiscalapi.Credentials" Version="4.0.97" />
36+
<PackageReference Include="Fiscalapi.Credentials" Version="4.0.340" />
3837
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.5" />
3938
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.5" />
4039
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.5" />

XmlDownloaderService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public async Task<AuthResponse> AuthenticateAsync(ICredential credential,
132132
{
133133
_logger.LogInformation("Starting authentication for RFC: {Rfc}", credential.Certificate.Rfc);
134134

135+
// Configure algorithm for XML downloader (SHA1) before authenticating
136+
credential.ConfigureAlgorithmForXmlDownloader();
137+
135138
var authResponse = await _authService.AuthenticateAsync(
136139
credential: credential,
137140
logger: _logger,

0 commit comments

Comments
 (0)