Skip to content

Commit

Permalink
SEBWIN-943: Fixed issue with older server versions not sending the ne…
Browse files Browse the repository at this point in the history
…w SPS encryption secret.
  • Loading branch information
dbuechel committed Jan 22, 2025
1 parent 99233d8 commit 0fb74c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions SafeExamBrowser.Server/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,21 @@ private JitsiMeetInstruction ParseJitsiMeetInstruction(JObject attributesJson)

private ScreenProctoringInstruction ParseScreenProctoringInstruction(JObject attributesJson)
{
return new ScreenProctoringInstruction
var instruction = new ScreenProctoringInstruction
{
ClientId = attributesJson["screenProctoringClientId"].Value<string>(),
ClientSecret = attributesJson["screenProctoringClientSecret"].Value<string>(),
EncryptionSecret = attributesJson["screenProctoringEncryptSecret"].Value<string>(),
GroupId = attributesJson["screenProctoringGroupId"].Value<string>(),
ServiceUrl = attributesJson["screenProctoringServiceURL"].Value<string>(),
SessionId = attributesJson["screenProctoringClientSessionId"].Value<string>()
};

if (attributesJson.ContainsKey("screenProctoringEncryptSecret"))
{
instruction.EncryptionSecret = attributesJson["screenProctoringEncryptSecret"].Value<string>();
}

return instruction;
}

private ZoomInstruction ParseZoomInstruction(JObject attributesJson)
Expand Down

0 comments on commit 0fb74c3

Please sign in to comment.