-
Notifications
You must be signed in to change notification settings - Fork 58
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
Simulation fails for google OAuth2 #186
Comments
|
@JohnFDavenport Thank you very much :) |
@Amr1977 In additional to what @JohnFDavenport has suggested, I remembered that I have bumped into the same problem in the past for a test that uses Google OAuth. I've now recalled what the issue was. When you captured the workflow, hoverfly only saves multiple identical requests once, which breaks your test when you try to simulate. There was a release https://github.com/SpectoLabs/hoverfly/releases/tag/v0.17.0 that provides stateful capture, and would capture all the request-response pairs as they were played out. You can find the docs here: https://hoverfly-java.readthedocs.io/en/latest/pages/corefunctionality/capturing.html#capturing Speaking of which I need to try it out myself as well. |
Thank you @tommysitu, upon diagnosing simulation JSON I found that google encodes all requests and responses starting from user providing email and password and redirection to callback URI (I might be mistaken) so I think I have to directly call our callback URI with proper parameters pretending that a google user is authenticated, bypassing email/password entry steps, I think that would be interesting feature if integrated in hoverfly for google OAuth2 because it is not trivial to decode google authentication transactions. |
Uploaded the captured activity, but fails to simulate
simulation.txt
The text was updated successfully, but these errors were encountered: