GitHub already has the redirect_uri in the OAuth app settings, and if there is a missmatch, it will error out.
This happens on prod environments where ngnix is proxying SSL connections. callback_url returns the http address, and not https, which causes the error.
redirect_uri
in the OAuth app settings, and if there is a missmatch, it will error out.callback_url
returns the http address, and not https, which causes the error.callback_url
settings does not help.To set this use the following snippet: