Hey @John_Tracy - thanks for reaching out. I don't specifically know if the linked issue was resolved, but I have a feeling that the behavior you're seeing is the result of something else entirely. Are you running an on-prem instance? And have you set the BASE_DOMAIN environment variable?
Hey @John_Tracy - sorry for the delay. I've had a chance to replicate a similar setup on my own instance but am not seeing the same error, at least on version 3.196.0. Which version are you currently running?
Some additional follow-up actions:
Verify that the BASE_DOMAIN configuration variable has been set by navigating to the /settings/environment path. I don't think this is the issue - as Retool is correctly populating the OAuth callback URL field - but it's worth checking.
Confirm that Auth0 itself is configured correctly by making a request to the authorization endpoint via curl or a tool like Postman.
Confirming I have been running on 3.196.0-stable I've upgraded to 3.196.10-stable but the issue persists.
I can see in the URL that the redirect_uri is not set. If I set this, the auth flow test then works. I do not want to manually have to set this. In your reproduction, is that not the case?
Really at a loss for how to get a bug fix here. I'll join the office hours tomorrow to demonstrate my issue.
Thanks for the update, @John_Tracy. I'm starting to think your issue may actually be related to the thread that you previously linked (and recently bumped). Looking back at the internal conversation from back then, we also weren't able to reproduce that reported behavior. My attempted reproduction, which I've shared below, works as expected without any manual tweaks.
This makes it particularly difficult to diagnose, especially in a self hosted environment. Hopefully we can shed some light on it if you join Office Hours.
For this API resource, I had originally tried the Oauth2 native authentication method with Client Credentials grants. This method does not involve a redirect_uri being the Retool callback. I switched from Custom with Oauth2 type to Oauth2 then switched to Authorization Code grant type which sets the callback. Then switched back to Custom with Oauth2 and it finally worked.
The resource definitely should not persist this empty value in it's state in such a way that it overwrites it's current state.