diff --git a/E2ETest/RejectSubmissionTest.cs b/E2ETest/RejectSubmissionTest.cs index 393084aae66ca071b098a01bb32d1e3fb3ce50f8..064aa666f119d440c3d7a12c02472674495cb503 100644 --- a/E2ETest/RejectSubmissionTest.cs +++ b/E2ETest/RejectSubmissionTest.cs @@ -72,7 +72,7 @@ public class RejectSubmissionTest : EndToEndTestBase { public void Sender_GetSubmissionState_AfterRejecting() { // Act var status = Sender.GetStatusForSubmission(_caseId, Settings.DestinationId); - + // Assert status.Count.Should().BeGreaterThan(0); status.ForEach( diff --git a/FitConnect/Encryption/FitEncryption.cs b/FitConnect/Encryption/FitEncryption.cs index 2e66b7de9be072d86f2d8b2511184da11f5d07c8..f7df5174ddb64aeebdf979dbbf1a238b8e47a889 100644 --- a/FitConnect/Encryption/FitEncryption.cs +++ b/FitConnect/Encryption/FitEncryption.cs @@ -146,11 +146,7 @@ public class FitEncryption { var subject = "submission:" + submissionId; _jwtHeader = - new JwtHeader(new SigningCredentials(signingKey, "PS512")) { - //{ "typ", "secevent+jwt" }, - // { "kid", signingKey.KeyId }, - // { "alg", "PS512" } - }; + new JwtHeader(new SigningCredentials(signingKey, "PS512")); _jwtHeader["typ"] = "secevent+jwt"; diff --git a/FitConnect/Subscriber.cs b/FitConnect/Subscriber.cs index 641281202e8d9c766aaf48287e2b2762bf572d0d..549558585bbf08fd17f11c919a4fcda1d7f023b4 100644 --- a/FitConnect/Subscriber.cs +++ b/FitConnect/Subscriber.cs @@ -169,6 +169,9 @@ public class Subscriber : FitConnectClient, } + /// <summary> + /// Accept or reject submission + /// </summary> private void CompleteSubmission(Submission submission, FinishSubmissionStatus status, Problems[]? problems = null) { if (submission.Id == null || submission.CaseId == null ||