Bug 156982 - Provide Option to specify browser agent string
Summary: Provide Option to specify browser agent string
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2023-08-29 05:57 UTC by markus
Modified: 2023-10-04 03:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markus 2023-08-29 05:57:01 UTC
Please provide an option to specify the browser agent string used when accessing documents in the web.
Sometimes access to files is blocked when the agent string is set to something like 'curl'.
Also conditional access from M$ M365 blocks access to files if for example the 'platform' in the browser agent string is not set to one of their supported platforms (Win, Mac, IOS, Android).
Comment 1 Stéphane Guillou (stragu) 2023-10-02 15:08:10 UTC
Adding "needsDevAdvice" as I am unsure of the implications.
Maybe something for the expert configuration?

Markus, if you know of documentation about those MS 365 restrictions, please do share a link.
Also, please give more information on what method exactly you use to access remote files, as I suppose the user agent string depends on the route.

Regarding getting blocked because "curl" is in there, it should at least be fixed for webdav since LO 7.3.4: bug 148429.

Michael, any opinion?
Comment 2 markus 2023-10-03 11:45:05 UTC
Well, I do not know any kind of documentation, unfortunately. 

The "use case" is to open documents located in one drive for business with activated conditional access blocking "unsupported platforms". 
When a company activates conditional access in their tenant and allow only "supported platforms" to have access to the content of that tenant, linux at all is denied (supported platforms are Windows, MacOS, iOS and Android). 
So I was thinking: How can Microsoft determine the platform from which I try to get access to the content ? 
I suppose, it will be the user agent string of the application that tries to access content. 

As the access method to open documents in one drive is probably a https get, that's at least what I can see, is shared from teams4linux to libre office.

An option to set the user agent string in a whole would provide a way to masque the original platform of a device. And it wont heard those who do not care of that use case. So, yes, this can surly be an expert option.

https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/overview
Comment 3 QA Administrators 2023-10-04 03:18:37 UTC Comment hidden (obsolete)