Social Login Initiated through provider portal (Office 365)

Is there a login url we can redirect to from the azure icon for a frappe instance for a seamless sign on?

Currently I’m targeting
but that just sends me to
Here I’d need to click Login with Office 365 and sign in again.



Place this in Website Script or Website ThemeCustom JS

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

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

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