Custom oauth problem with gluu, config problem or bug?

Hi all,

I’m trying to debug this issue I am encountering when attempting to connect rocketchat to my SSO server (gluu). I am using openID conncet on gluu and custom oauth on rocketchat.

On rocketchat I am able to get redirected to the gluu login, I login correctly but get redirected to the rocketchat homepage. In the logs I receive

 'Failed to complete OAuth handshake with gluu at https://sso.MYDOMAIN.cloud/oxauth/restv1/token. getaddrinfo ENOTFOUND sso.MYDOMAIN.cloud sso.MYDOMAIN.cloud:443' }

I am currently on

Version 0.74.2
Apps Engine Version 1.4.0
Database Migration 137

In gluu I receive no errors.

Any advice on solving this would be appreciated, I tried multiple different settings between the two and nothing seems to work.

Thanks,
Dan