Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Pre Login flow #116

Open
yurakhomitsky opened this issue Mar 10, 2022 · 1 comment
Open

Question: Pre Login flow #116

yurakhomitsky opened this issue Mar 10, 2022 · 1 comment

Comments

@yurakhomitsky
Copy link

yurakhomitsky commented Mar 10, 2022

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
Copy link

wisniewski94 commented Mar 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants