OAuth custom redirect URI

Trying to authenticate using the OAuth2 User-Agent Flow. I have a custom redirect_uri however that I need to pass manually. Bubble.io always overwrites with a random URI. I need to pass a very specific one.

Any advice here?

If you are using the API Connector for Oauth2 then uncheck the universal redirect_uri and pass your URL.

This doesn’t work. The problem is that Bubble adds their own redirect_uri to my request. I cannot add mine to it as well. They also add a bunch of more information that is not applicable to my redirect request. For example,

https://{{WEBSITE}}/oauth/authorize?client_id={{REAL_CLIENT_ID}}&redirect_uri={{REAL_REDIRECT_URI}}&response_type={{REAL_RESPONSE_TYPE}}&client_id={{BUBBLE_CLIENT_ID}}&redirect_uri={{BUBBLE_REDIRECT_URI}}&response_type={{BUBBLE_RESPONSE_TYPE}}&state=%257B%2522debug_mode%2522%253A%2522true%2522%252C%2522oauth_provider%2522%253A%2522apiconnector2-cmMka%2522%252C%2522resume_key%2522%253A%25221636982898355x999629761396870500%2522%252C%2522used_redirect_url%2522%253A%2522https%253A%252F%252F{{APP}}.bubbleapps.io%252Fversion-test%253Fdebug_mode%253Dtrue%2522%257D

In this example, REAL_CLIENT_ID == BUBBLE_CLIENT_ID, REAL_RESPONSE_TYPE == BUBBLE_RESPONSE_TYPE but most crucially, the REAL_REDIRECT_URI <> BUBBLE_REDIRECT_URI which will then throw an error on the webpage I am trying to OAuth into.

I need to change the BUBBLE_REDIRECT_URI since I cannot change it on the portal and I do not want to call the authorization from the redirect page.