lirantal / cypress-social-logins

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

Having troubles with github auth test on Github Actions CI #103

Closed d-ivashchuk closed 3 years ago

d-ivashchuk commented 3 years ago

Everything works fine till the point of actual authentication - github asks for verification of the device :D I guess that's pretty not solvable right now? maybe someone knows how to mitigate it.

lirantal commented 3 years ago

Hi there

Looks like you missed up on the disclaimer in the README: image

d-ivashchuk commented 3 years ago

Aha, missed indeed 🤔 don't know how could I have missed it, it being so prominent 🙈

too bad, I thought I'd be able to cover both local testing and ci parts with this. Thanks for the heads up, and the plug-in is really awesome 👏🏼

Maybe you've personally stumbled on some example using mocked next-auth session with cypress? Otherwise thanks and we can close this!

lirantal commented 3 years ago

I haven't stumbled on anything else. It's a tricky thing to work around due to all the anti-fraud protections that these social networks employ for login.

One idea I can give you is that if you can work out the whole two-factor auth via API (to get the code) then you can definitely work around it and script it into this testing plugin.

lirantal commented 3 years ago

Goodluck and have fun!