MOBILE-2882 mac: Restore browser SSO in Mac app

main
Dani Palou 2019-02-18 10:22:00 +01:00
parent 575285077f
commit 7f7d5a54dc
1 changed files with 4 additions and 4 deletions

View File

@ -561,8 +561,8 @@ export class CoreLoginHelperProvider {
* @return {boolean} True if embedded browser, false othwerise. * @return {boolean} True if embedded browser, false othwerise.
*/ */
isSSOEmbeddedBrowser(code: number): boolean { isSSOEmbeddedBrowser(code: number): boolean {
if (this.appProvider.isLinux() || this.appProvider.isMac()) { if (this.appProvider.isLinux()) {
// In Linux and Mac desktop apps, always use embedded browser. // In Linux desktop app, always use embedded browser.
return true; return true;
} }
@ -647,8 +647,8 @@ export class CoreLoginHelperProvider {
loginUrl += '&oauthsso=' + params.id; loginUrl += '&oauthsso=' + params.id;
if (this.appProvider.isLinux() || this.appProvider.isMac()) { if (this.appProvider.isLinux()) {
// In Linux and Mac desktop apps, always use embedded browser. // In Linux desktop app, always use embedded browser.
this.utils.openInApp(loginUrl); this.utils.openInApp(loginUrl);
} else { } else {
// Always open it in browser because the user might have the session stored in there. // Always open it in browser because the user might have the session stored in there.