Skip to content

Commit

Permalink
Merge pull request #3794 from alfonso-salces/MOBILE-4362
Browse files Browse the repository at this point in the history
MOBILE-4362 login-helper: Log sso login url
  • Loading branch information
dpalou authored Sep 27, 2023
2 parents 566db52 + 57d21e2 commit a666a07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/features/login/services/login-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ export class CoreLoginHelperProvider {
redirectData?: CoreRedirectPayload,
): boolean {
launchUrl = launchUrl || siteUrl + '/admin/tool/mobile/launch.php';

this.logger.debug('openBrowserForOAuthLogin launchUrl:', launchUrl);

if (!provider || !provider.url) {
return false;
}
Expand Down Expand Up @@ -670,6 +673,8 @@ export class CoreLoginHelperProvider {
): void {
const loginUrl = this.prepareForSSOLogin(siteUrl, service, launchUrl, redirectData);

this.logger.debug('openBrowserForSSOLogin loginUrl:', loginUrl);

if (this.isSSOEmbeddedBrowser(typeOfLogin)) {
CoreUtils.openInApp(loginUrl, {
clearsessioncache: 'yes', // Clear the session cache to allow for multiple logins.
Expand Down

0 comments on commit a666a07

Please sign in to comment.