Custom Auth - how to capture the url parameters in callback url

Hi all

I am trying to integrate with API service provider to retrieve bank balances from multiple banks. However, they are not using the standard OAuth2. This is a summary of the steps involved:

  1. API Request with client id and secret to get an access token
  2. Another API request to use the access token from #1, client ID, a Redirect URI. I will receive a link (URL) upon successfully authentication.
  3. Launch this link in a browser (the service provider suggests to use an iframe) received from #2. In the browser, I have to login and authenticate against the bank I want to extract the bank balances. It will generate "code" in the url parameters and send back to the redirect URI upon successful authentication.
  4. Another API call with this "code" from #3, with client_id and secret to get the access and refresh token for rest of the process.

I use custom authentication, and am able to complete step 1 - 3. But I am unable to find a way to capture the redirect URI and expose the url parameter (specifically I just need the "code").

Any help on how this can be done in Retool will be highly appreciated.

Regards,

Henry

1 Like