You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a simple Playwright test to go to https://login.microsoftonline.com/ to verify that the Windows SSO is working correctly, the account should be logged in or selectable if working.
import{test}from"@playwright/test";test("Microsoft SSO",async({ page })=>{// Go to Microsoft SSO sign-in page and wait for page to loadawaitpage.goto("https://login.microsoftonline.com/",{waitUntil: "domcontentloaded",});// Wait for long time to allow user to check about:config and security settings.awaitpage.waitForTimeout(999999999);}
When the test runs and https://login.microsoftonline.com/ loads, if SSO is working correctly then the account should automatically be logged in or if multiple accounts exist there should be an option to select one of.
Go to about:preferences#privacy, the setting Allow Windows single sign-on for Microsoft, work, and school accounts should be enabled.
Go to about:config and search for network.http.windows-sso.enabled, it should be set to true.
Expected behavior
Following navigation to https://login.microsoftonline.com/, if only one account is setup the user should be logged in automatically and redirected to https://office.com.
Note: The above working example screen recording has been achieved by using Python Selenium and the Geckodriover (see Python code below to replicate).
importtimefromseleniumimportwebdriverfromselenium.webdriver.firefox.optionsimportOptions# Set Firefox SSO preferenceopts=Options()
opts.set_preference("network.http.windows-sso.enabled", True)
# Launch Firefox webdriver with SSO optiondriver=webdriver.Firefox(options=opts)
# Navigate to Microsoft SSO logindriver.get("https://login.microsoftonline.com/")
# Wait for long time to allow user to check about:config and security settings.time.sleep(999999)
Actual behavior
Following navigation to https://login.microsoftonline.com/ there is no automatic SSO login or accounts available for selection.
Additionally when you manually proceed through the login process, the device does not meet management compliance policy (this does not occur with Selenium or manual launching of Firefox).
Checking about:preferences#privacy it can be seen that the SSO setting is enabled.
Checking about:config it can be seen that the preference is enabled as per the Playwright Firefox configuration.
Additional context
Manually launching the Firefox executable installed by Playwright (located at AppData\Local\ms-playwright\firefox-1440\firefox on Windows) the SSO works as expected when the preference is enabled.
Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable.
Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated.
Version
1.42.1
Steps to reproduce
https://login.microsoftonline.com/
to verify that the Windows SSO is working correctly, the account should be logged in or selectable if working.When the test runs and
https://login.microsoftonline.com/
loads, if SSO is working correctly then the account should automatically be logged in or if multiple accounts exist there should be an option to select one of.Go to
about:preferences#privacy
, the settingAllow Windows single sign-on for Microsoft, work, and school accounts
should be enabled.Go to
about:config
and search fornetwork.http.windows-sso.enabled
, it should be set to true.Expected behavior
https://login.microsoftonline.com/
, if only one account is setup the user should be logged in automatically and redirected tohttps://office.com
.Note: The above working example screen recording has been achieved by using Python Selenium and the Geckodriover (see Python code below to replicate).
Actual behavior
https://login.microsoftonline.com/
there is no automatic SSO login or accounts available for selection.about:preferences#privacy
it can be seen that the SSO setting is enabled.about:config
it can be seen that the preference is enabled as per the Playwright Firefox configuration.Additional context
AppData\Local\ms-playwright\firefox-1440\firefox
on Windows) the SSO works as expected when the preference is enabled.Environment
The text was updated successfully, but these errors were encountered: