Error with adfs user and a service using portal lib

Enonic version: 7.0.2
OS: Ubuntu 19

Hi, I’m struggling with an error when an adfs user call a service that uses node lib to create content (another user with same role and groups works fine), I don’t have a log yet but if someone have any idea of what may be happening would be appreciated. Thanks a lot.

Hi

Could you copy the error message.
Also could you check the permissions set on this parent content (the one that will contain the new content).

TIP: To know the roles and groups for the current session: /admin/rest/auth/authenticated

jquery.min.js:2 Mixed Content: The page at ‘https://enonic.no/admin/tool/app/app’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://enonic.no/admin/tool/app/app/_/service/app/app’. This request has been blocked; the content must be served over HTTPS.

I’m using portal lib to generate the service url and thats only for ADFS users, using a system login works fine.

I think the error is somewhere else here.

This problem can happen for example if the header “X-Forwarded-Proto” was not set to “https” by the server in front of XP.
In this case, if the vhost config corresponding to the system login is different from the one corresponding the ADFS, could you check the configuration there.