Hi, Emma.
Sorry, had to correct your post a bit to make it more easy to read for all.
May I ask how you got references to those demos? If it's not in our current docs chances are they are outdated and not tested properly.
>I tried to deploy this project https://github.com/GluuFederation/oxUmaDemo to my own server and connect it to my own GLUU server (it needs to connect to GLUU, not to OXD, right ?)
The app should be run on the same host where oxd server is installed to be able to utilize it as a mediator for OIDC and UMA flows, by design. You are expected to access some protected part of the app which should trigger UMA flow involving some redirections to Gluu instance, and in the end you should be returned to the app and access the resource (if you are authorized) - that's the general idea.
Could you also provide contents of your `/opt/oxd-server/conf` directory? Please note that there is sensitive license data in `oxd-conf.json`, so you need to sanitize it before sharing as this is publicly visible ticket.