question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSO Login Question: (Refer Issue #5053)

See original GitHub issue

Hi Contributors I had posted this question already which was closed and it seems the question wasn’t answered accurately, hence posting this again.

Step 1: When I load application URL, a popup window opes. image

Step 2: After user enters the email, another Login Prompt is shown. image

I have been able to get through Step 1, but now how do I handle step 2, where the Login Prompt is being shown.

I.amOnPage('/');

I.usePlaywrightTo('handle ms login', async ({ browser, context, page }) => {

    const contexts = await browser.contexts(); 

    const loginPage=await contexts[0].pages()[1];

// The below code is used for the first screenshot, to enter User Email
   await loginPage.fill('input[type="email"][name="loginfmt"]', 'UserEmail');
   await Promise.all([
    loginPage.click('input[type="submit"]'),
    loginPage.waitForNavigation({ waitUntil: 'networkidle0' })
]);
// This code does't work, and I am not able to enter the Username & Password
await loginPage.type('Username', 'Hello');
await loginPage.type('Password', '12345');

  }); 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pavelfeldmancommented, Jan 22, 2021

setHTTPCredentials is deprecated, you should create context with httpCredendials instead. Other than that, it seems like it does work for you, so closing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

single sign on - Community SSO Buttons outside of /login
In an IdP-initiated use case, the identity provider is configured with specialized links that refer to the desired service providers.
Read more >
For App Partners: Common Single sign-on (SSO) issues
This article contains the following: 1. Triaging Login Issues 2. Logging into IDP 3. Issues Logging in to Clever 4. Issues Logging in...
Read more >
SSO Setup Guides: Login Error Codes by SSO Type
This is related to your Identity Provider's 'requested authentication context' which can be enabled/disabled under your SSO Preferences page:.
Read more >
Villageweb login davita - Seba Online
Log in to the VillageWeb using your DaVita login and password and search ... by kidney disease—the largest public health issue you'll ever...
Read more >
unh housing assignment
UNH Students and Applicants Login: UNH - Student SSO Login; Where Wildcats Live! ... If you have questions about housing services (room assignments, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found