lirantal / cypress-social-logins

Cypress authentication flows using social network providers
Apache License 2.0
248 stars 78 forks source link

Question: Pre Login flow #116

Closed yurakhomitsky closed 4 months ago

yurakhomitsky commented 2 years ago

Before I get to Microsoft I have to go through some additional flow.

  1. I'm visiting my application URL: https://example.com
  2. I'm getting redirected to the login screen where I need to press the button image
  3. Next I need to type an email image
  4. After that the application navigates to Microsoft and populates my email. image

So the question is: Can the options of Microsoft social handle such flow? Can some of the pre-flow be done in cypress and the rest delegated to the puppeteer?

wisniewski94 commented 2 years ago

Hi @yurakhomitsky , the quick answer is no.

But I have challenged lately similar problem and I have forked the repo and made some changes. You can check the diff between both versions. Luckily the source is not complex.

https://github.com/wisniewski94/cypress-social-logins

We should consider adding some pre-login callback to this repository. My solution is not greatest but solves similar problem