Users of our iOS app have just started receiving a certificate error when trying to login to their OneDrive accounts

Mark Mc 1 Reputation point
2022-02-23T13:26:52.923+00:00

Hi,

About 5 days ago users of our App have started receiving a certificate error:

177169-image.png

"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “skyapi.onedrive.onedrive.live.com” which could put your confidential information at risk."

Obviously, the URL looks incorrect (too many "onedrive."'s in there...). The trouble is this URL is generated by "accountchooser.js" in code that looks like this:

e.skyApiBaseUrl = "https://skyapi.onedrive." + document.domain + "/API/2/";

We use the OneDriveSDK via a Cocoapod (nothing has changed here in years) and our App hasn't changed anything here in a similar time frame. So something recent looks to have changed, either in the accountchooser.js code, or in how "document.domain" is calculated/determined on iOS. For reference, our users are seeing this on iOS 15.3.x and iOS 15.4, so latest stable production releases.

Is anyone seeing anything similar? Any help with where or how we should raise this issue would be helpful...

Screenshot of a Proxyman capture on a clean iOS Simulator 177232-image.png

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,122 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Charlie Reid 11 Reputation points
    2022-02-24T18:20:12.027+00:00

    Seeing the same error for the last few days while IOS Stronbox App tries to log in to access a data file on 365 OneDrive.

    2 people found this answer helpful.

  2. JoeThornriver 11 Reputation points
    2022-03-05T13:08:41.7+00:00

    I have the same problem. please correct!

    2 people found this answer helpful.
    0 comments No comments

  3. DA 1 Reputation point
    2022-03-10T05:14:44.95+00:00

    Keepass Touch app on my iPhone is throwing the same error when attempting to sync with OneDrive. Any ETA on a fix?

    181650-c79f9cd8-863b-4327-8bfd-d7be4151ca31.jpeg


  4. Mark Mc 1 Reputation point
    2022-03-10T07:45:12.603+00:00

    We managed to solve this issue for Strongbox users over the weekend. Please update to 1.55.2 for a fix.

    NB: You may need to re-add your OneDrive databases ( + > Add Existing > OneDrive) to see the effect.

    0 comments No comments

  5. Максим Максим 1 Reputation point
    2022-03-12T09:29:40.493+00:00

    Hi @Mark Mc
    Could you please advise how to solve this problem? I came across same problrm in my app.

    0 comments No comments