OAuth2 responds 400 and 500 after landing on the redirect_uri with code

We have a custom application with an oauth2 server running, I've tried to setup the authorization with Retool but unfortunately is behaving very weirdly.

With the following setup:


This is the redirect page:

And with this setup:


This is the redirect page:

The issue was the state was not being sent back by the oauth2 server

1 Like