Fixed issue with redirect_uri with https