MOBILE-3039 core: Fix load logged out site with SSO
parent
4f1cd6a94e
commit
838646f085
|
@ -938,6 +938,8 @@ export class CoreLoginHelperProvider {
|
||||||
|
|
||||||
promise.then(() => {
|
promise.then(() => {
|
||||||
this.waitingForBrowser = true;
|
this.waitingForBrowser = true;
|
||||||
|
this.sitesProvider.unsetCurrentSite(); // We need to unset current site to make authentication work fine.
|
||||||
|
|
||||||
this.openBrowserForSSOLogin(result.siteUrl, result.code, result.service,
|
this.openBrowserForSSOLogin(result.siteUrl, result.code, result.service,
|
||||||
result.config && result.config.launchurl, data.pageName, data.params);
|
result.config && result.config.launchurl, data.pageName, data.params);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
|
@ -1181,6 +1181,13 @@ export class CoreSitesProvider {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unset current site.
|
||||||
|
*/
|
||||||
|
unsetCurrentSite(): void {
|
||||||
|
this.currentSite = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a site's token.
|
* Updates a site's token.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue