2018-10-12 11:16:59 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-10-12 11:16:59 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System;
|
2019-10-01 11:30:53 +02:00
|
|
|
|
using SafeExamBrowser.Settings;
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Configuration.Contracts
|
2018-10-12 11:16:59 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// Container holding all session-related configuration data.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
public class SessionConfiguration
|
2018-10-12 11:16:59 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-10-01 11:30:53 +02:00
|
|
|
|
/// The application configuration for this session.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
public AppConfig AppConfig { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The token used for initial communication authentication with the client.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
public Guid ClientAuthenticationToken { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
2024-05-24 15:46:01 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates whether a configuration resource needs to be loaded in the browser because it requires authentication or is a webpage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsBrowserResource { get; set; }
|
|
|
|
|
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The unique session identifier.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid SessionId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The settings used for this session.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-10-01 11:30:53 +02:00
|
|
|
|
public AppSettings Settings { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
}
|
|
|
|
|
}
|