Bug 156982

Summary: Provide Option to specify browser agent string
Product: LibreOffice Reporter: markus
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement CC: michael.stahl, stephane.guillou
Priority: medium Keywords: needsDevAdvice
Version: 7.5.5.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=146460
https://bugs.documentfoundation.org/show_bug.cgi?id=148429
https://bugs.documentfoundation.org/show_bug.cgi?id=55073
Whiteboard:
Crash report or crash signature: Regression By:

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)