Google Oauth refresh token works on localhost but not elsewhere

Viewed 14

I wish i could be more precise about the problem, but I don't know how to ask the question in a way that it isn't a wild goose chase.

Problem is this: I have a web app that delivers oauth tokens which include a refresh token when I run it on localhost, but works - except for delivering a refresh token - when run on my production server.

Libraries and environment are aligner as far as I can see, and things don't really fail, I just don't get a refresh token. Any ideas where to start looking?

All the calls return no error.

The only other thing I've noticed, in the production response a scope called openid gets added to the scopes I asked for.

As far as the code is concerned - I'm not posting because the question is "thing work ok on localhost and don't on production server" - the key thing is "why here and not there".

I'm using perl and Mojolicious FWIW.

0 Answers
Related