SEBWIN-795: Improved user session resolution with SEB Server.
This commit is contained in:
parent
01db8fd84e
commit
e4a82e2f63
2 changed files with 3 additions and 3 deletions
|
@ -23,8 +23,7 @@ namespace SafeExamBrowser.Server.Requests
|
||||||
internal bool TryExecute(Exam exam, out string message, out string appSignatureKeySalt, out string browserExamKey)
|
internal bool TryExecute(Exam exam, out string message, out string appSignatureKeySalt, out string browserExamKey)
|
||||||
{
|
{
|
||||||
var content = $"examId={exam.Id}";
|
var content = $"examId={exam.Id}";
|
||||||
var method = new HttpMethod("PATCH");
|
var success = TryExecute(HttpMethod.Put, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token);
|
||||||
var success = TryExecute(method, api.HandshakeEndpoint, out var response, content, ContentType.URL_ENCODED, Authorization, Token);
|
|
||||||
|
|
||||||
appSignatureKeySalt = default;
|
appSignatureKeySalt = default;
|
||||||
browserExamKey = default;
|
browserExamKey = default;
|
||||||
|
|
|
@ -27,7 +27,8 @@ namespace SafeExamBrowser.Server.Requests
|
||||||
internal bool TryExecute(string examId, string identifier, out string message)
|
internal bool TryExecute(string examId, string identifier, out string message)
|
||||||
{
|
{
|
||||||
var content = $"examId={examId}&seb_user_session_id={identifier}";
|
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();
|
message = response.ToLogString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue