I am building a custom python based webapp - basically a unified enterprise chat platform. The brain behind it would be OpenAI Responses API calls.
I am trying to get user's authentication using the Oauth2.1 flow. I am getting following error "Your organization admin must authorize access from a domain to this site. Contact your organization admin to authorize access from domain ..."

I have already added the domain as mentioned here,
https://support.atlassian.com/security-and-access-policies/docs/control-atlassian-rovo-mcp-server-settings/
However, I am able to use it from localhost perfectly fine.
Note: The server is an ec2 instance only accessible from inside a VPN.