Do you have an example of authenticating to a webapp that works with cypress.io? Skip to main content
https://support.okta.com/help/answers?id=9062a000000dfurqaw&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Troy LamoreauxTroy Lamoreaux 

Do you have an example of authenticating to a webapp that works with cypress.io?

when I try to login to a webapp the 302 redirect breaks things. Below is the error message. 
CypressError: cy.visit() failed because you are attempting to visit a second unique domain.
You may only visit a single unique domain per test.
Different subdomains are okay, but unique domains are not.
The previous domain you visited was: 'https://xxxx'
You're attempting to visit this new domain: 'https://xxxxx'
You may need to restructure some of your code to prevent this from happening.
https://on.cypress.io/cannot-visit-second-unique-domain
Andrei HavaAndrei Hava (Okta, Inc.)
Hello Troy,

This is a particularly specific issue tied to Cypress. After having checked internally, Cypress is not something we support fully, thus I strongly recommend submitting an idea about this.

Otherwise, if this is something that's blocking production, please reach out to Support and open a ticket with us directly.

Thank you,
Andrei Hava
Okta Developer Support
Dylann FezeuDylann Fezeu (Customer First Programs)
Hello Okta Admin,

Thanks for posting your inquiry in Okta Community Portal.

​If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

Thank you,

​Dylann Fezeu
Okta Help Center Team