stormpath / express-stormpath

Build simple, secure web applications with Stormpath and Express!
http://docs.stormpath.com/nodejs/express/
Apache License 2.0
325 stars 111 forks source link

https redirect on social login #545

Closed merkelct closed 7 years ago

merkelct commented 7 years ago

after deploying our new app out to test servers we are having issues getting the social login via google to redirect to https. Is there a way to configure this or override similar to

social:{
      google:{
        scope: 'openid email profile'
      }

current code only redirects to http

robertjd commented 7 years ago

Hi @merkelct , can you tell me if you're using the app.set('trust proxy', true) configuration on your app? This may be necessary if you are running behind a reverse proxy, such as the heroku environment.

merkelct commented 7 years ago

@robertjd we are not using that and we are behind an nginx proxy I will try that suggestion.

robertjd commented 7 years ago

Hi @merkelct , did that change work for you?