Social Login Initiated through provider portal (Office 365)

Is there a login url we can redirect to from the azure https://myapplications.microsoft.com/ icon for a frappe instance for a seamless sign on?

Currently I’m targeting
https://frappe-site.com/#login
but that just sends me to
image
Here I’d need to click Login with Office 365 and sign in again.

Thanks

-H

Place this in Website Script or Website ThemeCustom JS

// Detect login page
if ($('#page-login').length) {
  // Hide page
  $('body').hide();

  // Login using custom social login button
  const loginBtn = $('.btn-office_365').length
    ? $('.btn-office_365')[0]
    : undefined;
  loginBtn && loginBtn.click();
}

replace “office_365” with the button class that you wish to auto click.