https://cypress.io logo
Issue with cookies and SAML (Azure AD)
# i-need-help
a
Hi, I'm currently trying to write a test to assert the login flow with a SAML setup. I have followed the guide on the Cypress website to deal with logging in via Microsoft, but stumbled on a different issue altogether. (guide: https://docs.cypress.io/guides/end-to-end-testing/azure-active-directory-authentication#Microsoft-AAD-Application-Setup) Our app creates a cookie, which we send along in a request after the redirect is done from Microsoft to our app again. However, this cookie is cleared and this causes our flow to fail as we cannot handle the authentication further. Our Cypress version is 10.8.0 and I've read that the option
testIsolation
might help with this. However, this does not work, not on global config level (legacy nor strict does anything) or on describe/suite level (the option isn't even available in the typings). Any help would be appreciated on how to deal with this 🙂
3 Views