I keep getting a wrong redirect_url from Identity provider during authentication step.
I checked encoding it’s correct and url decoded version does match the other side.
GET /connect/oauth2?client_id=<my-client-id>&redirect_uri=https%3A%2F%2Fbalancebots.fly.dev%2Fusers%2Fauth%2Fintuit%2Fcallback&response_type=code&scope=com.intuit.quickbooks.accounting&state=<state>
In fact, I ran the same container locally and used ngrok to try reproducing this issue. However, OAuth worked fine with ngrok.
It seems to be a running theme with render.io as well.
Is there any weird routing at the edge that I should be aware of? Or I am just going insane?
Are you using an OAuth2 provider (such as Laravel Socialite) … or rolled your own? Only there may be some docs about it, if other people find the same. Especially if you find the same on other cloud providers, which would suggest it’s not Fly-specific.
The URL looks ok to me but yes, it has to exactly match what is expected/registered, so that would be the first thing I’d check
@andrewshatnyy It’s beyond my Rails experience I’m afraid but you are in good hands with @rubys .
Could it be using a redirect uri set up for sandbox … in production, or vice versa ? That was my other total guess, at least based on the screenshot in here.