Hi, Raman.
Thanks for the detailed description, but it's hard to understand how exactly the flow proceeds. Please provide a HAR file with its trace so we could see it clearly.
You can use steps listed [here](https://www.inflectra.com/support/knowledgebase/kb254.aspx) - please use Firefox for that task, Chrome's HARs are flawed. Also don't forget to set "Persist log" and "Disable cache" checkboxes in the console to save everything, not just the recently loaded page.
Also, you could consider recording a video of the whole process.
So far, it was my understanding that flow actually goes back to Confluence in the end, i.e. Gluu Server seem to do its job without obvious issues, and then Confluence fails to finish the flow. Please note that we offer limited support for configuring 3rd party software within Community support.
In addition, consider next kind of test:
1. In your main browser, log in to web UI and go to "Manage authentication -> Default Authentication Method" page
2. Set "oxTrust acr" property to the auth method you try to configure ("otp" will be my guess)
3. In your another web browser, try to login to admin web UI; you should be challenged with 2FA auth method you set before; if it works and you are logged in to web UI, even more reasons to think that issue is within your RP software