From 7f7d5a54dc8fd298d02602df26462dceb7da76d0 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 18 Feb 2019 10:22:00 +0100 Subject: [PATCH] MOBILE-2882 mac: Restore browser SSO in Mac app --- src/core/login/providers/helper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/login/providers/helper.ts b/src/core/login/providers/helper.ts index 77d06b08c..bf8abb21b 100644 --- a/src/core/login/providers/helper.ts +++ b/src/core/login/providers/helper.ts @@ -561,8 +561,8 @@ export class CoreLoginHelperProvider { * @return {boolean} True if embedded browser, false othwerise. */ isSSOEmbeddedBrowser(code: number): boolean { - if (this.appProvider.isLinux() || this.appProvider.isMac()) { - // In Linux and Mac desktop apps, always use embedded browser. + if (this.appProvider.isLinux()) { + // In Linux desktop app, always use embedded browser. return true; } @@ -647,8 +647,8 @@ export class CoreLoginHelperProvider { loginUrl += '&oauthsso=' + params.id; - if (this.appProvider.isLinux() || this.appProvider.isMac()) { - // In Linux and Mac desktop apps, always use embedded browser. + if (this.appProvider.isLinux()) { + // In Linux desktop app, always use embedded browser. this.utils.openInApp(loginUrl); } else { // Always open it in browser because the user might have the session stored in there.