Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda