Open pmeulen opened 6 years ago
Actually, I can't reproduce this ... But to be fair, I've never had this push-mechanism working... Always: [30/Aug/2017:22:59:15 +0200] "POST /janus/app.php/api/remotes/prod/pushes.json?csrf-token=xyz HTTP/1.1" 500 Without any further explanation in logs..
@tvdijen If you couldn't get PUSH to work in the first place, the HTTP 500 you see is likely unrelated. Nothing in the php error (or apache error) logs either?
Not a thing...
I just got it working ... Still can't reproduce your issue.
I either use ...
auth: admin
useridattr: user
... for admin login or ...
auth: default-sp
useridattr: useridattr: urn:mace:dir:attribute-def:uid
... when using ServiceRegistry as an SP. Both work fine...
The push API is used to push a configuration to OpenConext-engineblock.
When using the push API (i.e. the post to
/janus/app.php/api/remotes/test/pushes.json
) you get an error in the janus log:The problem is that in https://github.com/janus-ssp/janus/blob/develop/src/Janus/ServiceRegistry/Security/Authentication/Provider/SspProvider.php authenticationType and userIdAttributeName are not set to the correct values. They should have been set to the values from
modules/janus/app/config/config_janus_core.yml
which contains:When hard-coding the correct values in src/Janus/ServiceRegistry/Security/Authentication/Provider/SspProvider.php, push works as expected. E.g.: