Merge pull request #3794 from alfonso-salces/MOBILE-4362

MOBILE-4362 login-helper: Log sso login url
main
Dani Palou 2023-09-27 13:10:41 +02:00 committed by GitHub
commit a666a07759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -631,6 +631,9 @@ export class CoreLoginHelperProvider {
redirectData?: CoreRedirectPayload, redirectData?: CoreRedirectPayload,
): boolean { ): boolean {
launchUrl = launchUrl || siteUrl + '/admin/tool/mobile/launch.php'; launchUrl = launchUrl || siteUrl + '/admin/tool/mobile/launch.php';
this.logger.debug('openBrowserForOAuthLogin launchUrl:', launchUrl);
if (!provider || !provider.url) { if (!provider || !provider.url) {
return false; return false;
} }
@ -670,6 +673,8 @@ export class CoreLoginHelperProvider {
): void { ): void {
const loginUrl = this.prepareForSSOLogin(siteUrl, service, launchUrl, redirectData); const loginUrl = this.prepareForSSOLogin(siteUrl, service, launchUrl, redirectData);
this.logger.debug('openBrowserForSSOLogin loginUrl:', loginUrl);
if (this.isSSOEmbeddedBrowser(typeOfLogin)) { if (this.isSSOEmbeddedBrowser(typeOfLogin)) {
CoreUtils.openInApp(loginUrl, { CoreUtils.openInApp(loginUrl, {
clearsessioncache: 'yes', // Clear the session cache to allow for multiple logins. clearsessioncache: 'yes', // Clear the session cache to allow for multiple logins.