https://cypress.io logo
Hi guys, I have a use case where my application i...
# e2e-testing
b
Hi guys, I have a use case where my application is being authenticated on the backend, so basically, no information is sent from the frontend to the backend to fulfill the authentication. What I would ask of you is if you can provide any experience bootstrapping e2e tests in such a case. We are using Keycloak which communicates with our
authService
that the backend is using to authenticate communication for the logged-in user's session.
f
Presumably something is being set on the browser so that the frontend knows the user is authenticated? If that's the case, you could probably make your authentication call to the backend with
cy.request()
, and wrap that within a
cy.session()
to reuse the session cookies