From e4a82e2f63ed53867a34c3088aba14e0468c3291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 22 Apr 2024 11:09:37 +0200 Subject: [PATCH] SEBWIN-795: Improved user session resolution with SEB Server. --- SafeExamBrowser.Server/Requests/SelectExamRequest.cs | 3 +-- SafeExamBrowser.Server/Requests/UserIdentifierRequest.cs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SafeExamBrowser.Server/Requests/SelectExamRequest.cs b/SafeExamBrowser.Server/Requests/SelectExamRequest.cs index 6734fbd9..a7b79c1b 100644 --- a/SafeExamBrowser.Server/Requests/SelectExamRequest.cs +++ b/SafeExamBrowser.Server/Requests/SelectExamRequest.cs @@ -23,8 +23,7 @@ namespace SafeExamBrowser.Server.Requests internal bool TryExecute(Exam exam, out string message, out string appSignatureKeySalt, out string browserExamKey) { var content = $"examId={exam.Id}"; - var method = new HttpMethod("PATCH"); - var success = TryExecute(method, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token); + var success = TryExecute(HttpMethod.Put, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token); appSignatureKeySalt = default; browserExamKey = default; diff --git a/SafeExamBrowser.Server/Requests/UserIdentifierRequest.cs b/SafeExamBrowser.Server/Requests/UserIdentifierRequest.cs index 16c9c0c8..bb01562d 100644 --- a/SafeExamBrowser.Server/Requests/UserIdentifierRequest.cs +++ b/SafeExamBrowser.Server/Requests/UserIdentifierRequest.cs @@ -27,7 +27,8 @@ namespace SafeExamBrowser.Server.Requests internal bool TryExecute(string examId, string identifier, out string message) { var content = $"examId={examId}&seb_user_session_id={identifier}"; - var success = TryExecute(HttpMethod.Put, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token); + var method = new HttpMethod("PATCH"); + var success = TryExecute(method, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token); message = response.ToLogString();