Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • fit-connect/sdk-dotnet
1 result
Show changes
Commits on Source (5)
......@@ -8,7 +8,7 @@ public static class EncryptionSettings {
public const JweEncryption Encryption = JweEncryption.A256GCM;
public const JweAlgorithm Algorithm = JweAlgorithm.RSA_OAEP_256;
public const SerializationMode SerializationMode = Jose.SerializationMode.Compact;
public static readonly JweCompression? Compression = null;
public static JweCompression? Compression = null;
public static readonly int CertificateChainLength = 3;
public static readonly string SigningAlgorithm = "PS512";
public static readonly string EncryptionAlgorithm = "RSA-OAEP-256";
......
......@@ -34,7 +34,7 @@
<ItemGroup>
<PackageReference Include="Autofac" Version="8.1.1" />
<PackageReference Include="IdentityModel" Version="7.0.0" />
<PackageReference Include="jose-jwt" Version="5.1.0" />
<PackageReference Include="jose-jwt" Version="4.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.1" />
......@@ -93,12 +93,6 @@
<ProjectReference Include="..\KeyManagement\KeyManagement.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="..\changelog.md">
<Link>changelog.md</Link>
</Content>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
</Target>
......
using FitConnect.Encryption;
using FitConnect.Models;
using FitConnect.Models.v1.Api;
using FluentAssertions;
using Jose;
namespace E2ETest;
[TestFixture]
public class E2ETestMemoryStream : StraightForwardTest {
public override void T0100_SendingSubmission() {
EncryptionSettings.Compression = JweCompression.DEF;
base.T0100_SendingSubmission();
// EncryptionSettings.Compression = null;
}
public override void T0700_Subscriber_RequestSubmission() {
var receivedSubmission =
Subscriber.RequestSubmissionAsync(Submission.SubmissionId).Result;
var attachments = receivedSubmission.GetAttachmentsAsync().Result;
foreach (var attachment in attachments) {
var bytes = attachment.GetBytes();
bytes.Length.Should().BePositive();
}
receivedSubmission
.AcceptSubmissionAsync(new[] { new Problems(Problems.ProblemTypeEnum.MissingData, "Just a test...") })
.Wait();
}
public override void T0900_Sender_GetSubmissionState_AfterAccepting() {
var status = Sender.GetStatusForSubmissionAsync(Submission).Result;
status.SubmissionState.Should().Be(EventType.Accept);
status.Problems.Should().NotBeNullOrEmpty();
status.Problems!.Any(p => p.Detail == "Just a test...").Should().BeTrue();
}
}
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -5,6 +5,16 @@ All notable changes to the FIT-Connect .NET SDK will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/),
and this project adheres to [Semantic Versioning](https://semver.org/).
## [2.3.2] - 2024-11-27
### Updates
- Dependencies
- jose-jwt **downgraded** to Version="4.1.0"
### Fixed
- MemoryStream not expandable bug
## [2.3.1] - 2024-11-22
### Removed
......