SEBWIN-795: Improved user session resolution with SEB Server.

This commit is contained in:
Damian Büchel 2024-04-22 11:09:37 +02:00
parent 01db8fd84e
commit e4a82e2f63
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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();