SafeExamBrowser / seb-mac

Safe Exam Browser for macOS and iOS
https://www.safeexambrowser.org/macosx
102 stars 42 forks source link

Default UserAgent not getting added when link is open under SEB. #402

Closed VarunTwri closed 6 months ago

VarunTwri commented 6 months ago

Describe the bug We want to restrict user so that SEB with our start link only opens with our configuration. No user should be able to configure our link on their config file and open it. For this we made check for user agent what SEB adds by default. image

But this "SEB" text is not getting appended for IOS userAgent. We are getting below userAgent. image

Updated to SEB IOS 3.3 then its fine, but still users can have old version and do setup our link.

Expected behavior Default UserAgent should be appended with "SEB" text and version.

Version Information Please complete the following information:

danschlet commented 6 months ago

Are you saying it works correctly with SEB 3.3.3 but not with 3.3.2? We obviously cannot fix an older SEB version, students have to update to the latest version.

What assessment system are you using? I assume your SEB integration or SEB settings don't allow SEB to use the modern WebView. In SEB 3.3.3 a deprecation message is displayed on top of the browser tab.

If you update your SEB integration or SEB settings to allow SEB to use the modern WebView, then the user agent should be correct also in SEB 3.3.2. The reason for the missing user agent isn't SEB, but that Apple is no longer fully supporting the classic WebView (UIWebView). In SEB 3.3.3 we implement a workaround for that, but the old WebView will likely soon be removed completely from iOS.

VarunTwri commented 6 months ago

This is fine. To remove deprecation message if we set "PreferModern" then its not sending Config and BEK keys in header for mac/ios. How can we validate for legit config is used? @danschlet Please review this.

danschlet commented 6 months ago

Come on, we wrote about this everywhere, on the homepage news section, download page, release notes. Please read our documentation.