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

148
Visualizações
My https website after google auth redirects to http

I am my website hosted on AWS (elastic beanstalk), the SSL also from there, the SSL is added as a listner to the load balancer of my app, with all HTTP traffic redirected to https,it's all working fine. I am also using google auth, with passport, which works fine with localhost but after google auth in the live website, it redirects to the HTTP part of my website which google doesn't allow, can someone help!

    passport.use(new GoogleStrategy({
        clientID: process.env.googleClientID,
        clientSecret: process.env.googleSecret,
        callbackURL: '/auth/google/callback',
        ()=> {my auth code});

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

0

Since the server was in HTTP and the load balancer was diverting the traffic to HTTPS the inherent path was still HTTP which is taken as a callback URL when using relative path. All I had to do is either create a https server with pem and key files or I could just hardcode the URL value in the callback, I did the later and it worked fine.

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