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

58
Visualizações
Return to requested url after login

I am making React App in which msal-browser has been integrated for login.

Steps to reproduce:

-> Enter url in browser like https://example.com/profile

-> User is not logged in yet, so the user will be redirected to login page and upon clicking login button, user will be redirected to https://login.microsoftonline.com/ .

-> Entered user credentials and once the login is successful, user was redirected to https://example.com/home post login.

Expectation:

-> But the user is expected to redirect back to the original/requested url which is https://example.com/profile.

Things tried:

I have tried configuring the auth like,

  auth: {
    clientId: clientId,
    authority: authority,
    redirectUri: redirectUri,
    navigateToLoginRequestUrl : true
  },

Thought navigateToLoginRequestUrl will do the trick but unfortunately it doesn't. Anyone here could able to help and get out of this blocker I am facing? Big thanks in advance.

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