Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example use case - when Microsoft pretends that "Linux x86_64" must be a either Android or iOS #6

Open
velle opened this issue Nov 27, 2022 · 0 comments

Comments

@velle
Copy link

velle commented Nov 27, 2022

The company I work for uses some Exchange (or whatever it is called) suite from Microsoft, probably in the cloud, to handle emails and much else. I want to access my work email from my Linux machine, and I did so for a long time, simply using Outlook webmail.

After recent security policy changes in the company, only "registered" devices are allowed to access any of these MS services. All Windows PCs must be registered under the domain, even if trying to access webmail via a browser. However, I persuaded the company to add me to a group of users who were allowed to access from non-domain PCs. So now I can acces from a non-domain Windows machine.

When I try to access from a Linux machine, MS inspects various details about the client, including navigator.platform which returns "Linux x86_64". MS then requires me to install their Intune app, which is only available for mobile devices like iOS and Android. I actually don't know what happens if one tries from a Macintosh.

So I needed to spoof being a Windows machine. I know that MS inspects both the UserAgent part of the HTTP request and navigator.platform javascript object. All of the plugins I tried did not work for me, even after experimenting with various values. Some plugins might have worked, if I had taken more time to experiment with settings.

In any case. X-Agent worked out of the box :) And furthermore, it turned out that it worked on Firefox too :) And then I added one line to the manifest.json for the Owl plugin (for Thunderbird) , pointing to background.js from X-Agent, and now Thunderbird/Owl can also handle my emails again.

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant