How do I change my redirect_uri for Google OAuth 2.0 authentication?
Solution 1:
You state because the redirect_uri is still using http://. What is using that URI? Do you have paths hardcoded in your application?
Or do you mean that the callback from Google is going to your HTTP endpoint? Your code informs Google of the callback URI. Google verifies that the URI is on the approved callback list. Double-check your application code for hardcoded URIs.
Another possibility is that you are behind a proxy (load balancer) and your app thinks the scheme is HTTP when it is really HTTPS. That will require updating your app to support the HTTP header X-Forwarded-Proto.