Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

127
Visualizações
Authenticate Auth0 using cypress with in-browser cross domain login

I am trying to log into my app using Cypress. The flow is...

  • A user visits my site
  • I notice they are not authenticated
  • I redirect them to auth0 to authenticate
  • Auth0 sends me a code via callback and they are redirected back to the page

When I try this flow with the following Cypress code...

const fillLogin = async () => {
  cy.log("Filling login");
  cy.get("#username")
    .should("be.visible")
    .type(testUser());
  cy.get("#password")
    .should("be.visible")
    .type(testPassword());
  cy.get("button[name=\"action\"]")
    .should("be.visible")
    .click();

  return cy.get(".main-container")
    .should("be.visible");
};

Everything works until it gets ready to redirect back to the /callback and it just freezes. The url it gets stuck on is /authorize/resume?state=....

I think it might be because the authentication is in a domain other than the actual webapp domain.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda