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

140
Visualizações
How to share authentication across multiple web apps from the clientside using React/Javascript?

I am currently implementing a react application where there is the main application where the authentication takes place and then there is a sub-application that has a different URL and gets opened in a separate window based on user selection and the user should be validated as logged in if the authentication already happened in the main app. If the user tries to directly access the sub app from the URL , they should be redirected to the main login if the user is not authenticated from the main app. How can this be done? Is there any way to share the loggedIn info to the sub app also in some way?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

you should implement a Single sign-on (SSO). It's an authentication scheme that allows a user to log in with a single token to several systems. You can implement such system via OpenId Connect.

about 4 years ago · Juan Pablo Isaza Relatório

0

In the login you can create a JWT token (https://jwt.io/) to send in the header, and in the other websites you can check it.

You can check the signature and the content with the required data.

about 4 years ago · Juan Pablo Isaza Relatório
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