janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.
Other
13 stars 8 forks source link

Can't push to EB #609

Closed baszoetekouw closed 7 years ago

baszoetekouw commented 7 years ago

In my config_janus_core.yml, I've got

janus_service_registry_core:
    auth: login-admin
    useridattr: user

to enable local logins. That works finem until I try to push to EB. The simply gives "Failed to push to "Openconext Engineblock"". The log shows:

[2016-09-29 22:47:54] request.INFO: Matched route "post_remote_push" (parameters: "_controller": "Janus\ServiceRegistry\Bundle\RestApiBundle\Controller\RemotePushController::postRemotePushAction", "_format": "json", "remoteId": "test", "_route": "post_remote_push") [] []
[2016-09-29 22:47:55] app.WARNING: Ssp Firewall: failed:Authsource 'default-sp' is invalid [] []
[2016-09-29 22:47:55] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "You are not authenticated" at /opt/openconext/OpenConext-serviceregistry-1.22.0/simplesamlphp-1.13.2/modules/janus/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/AccessDeniedListener.php line 77 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): You are not authenticated at /opt/openconext/OpenConext-serviceregistry-1.22.0/simplesamlphp-1.13.2/modules/janus/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/AccessDeniedListener.php:77, Symfony\\Component\\Security\\Core\\Exception\\AuthenticationCredentialsNotFoundException(code: 0): A Token was not found in the SecurityContext. at /opt/openconext/OpenConext-serviceregistry-1.22.0/simplesamlphp-1.13.2/modules/janus/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php:53)"} []
[2016-09-29 22:47:55] security.DEBUG: Write SecurityContext in the session [] []

Any idea what could be wrong?

baszoetekouw commented 7 years ago

Seems to have been something weird with old sessions. I solved it by clearing Janus's cache dir.

petertambach commented 7 years ago

I experience the same problems, only i can't solve it by clearing Janus' cache.

I've installed using OpenConext-deploy on the vagrant boxes as per provided example. From the welcome page I login into Service Registry with admin/admin user, When I push to EB, that fails. Then I change to local login, like TS did, that also fails.

As this is my first attempt on OpenConext, I'm not sure if this is the right spot to report this.

baszoetekouw commented 7 years ago

@petertambach Are you gettign the same error messag as mentioned above in /var/log/janus-spp/?

thijskh commented 7 years ago

@petertambach The best place is the OpenConext mailinglist, and please include relevant logging output. See: https://openconext.org/get-involved/mailing-lists/