{"action":"created","issue":{"url":"https://api.github.com/repos/lightSAML/SpBundle/issues/15","repository_url":"https://api.github.com/repos/lightSAML/SpBundle","labels_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/15/comments","events_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/15/events","html_url":"https://github.com/lightSAML/SpBundle/issues/15","id":132937224,"number":15,"title":"ERROR with ADFS","user":{"login":"alberto-coolshop","id":13332592,"avatar_url":"https://avatars.githubusercontent.com/u/13332592?v=3","gravatar_id":"","url":"https://api.github.com/users/alberto-coolshop","html_url":"https://github.com/alberto-coolshop","followers_url":"https://api.github.com/users/alberto-coolshop/followers","following_url":"https://api.github.com/users/alberto-coolshop/following{/other_user}","gists_url":"https://api.github.com/users/alberto-coolshop/gists{/gist_id}","starred_url":"https://api.github.com/users/alberto-coolshop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alberto-coolshop/subscriptions","organizations_url":"https://api.github.com/users/alberto-coolshop/orgs","repos_url":"https://api.github.com/users/alberto-coolshop/repos","events_url":"https://api.github.com/users/alberto-coolshop/events{/privacy}","received_events_url":"https://api.github.com/users/alberto-coolshop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-11T10:34:27Z","updated_at":"2016-05-19T12:08:16Z","closed_at":null,"body":"Hi all! \r\nI'm trying to integrate lightsaml with adfs, but here is the stack of the exception I have.\r\nI think there is a problem with signature...\r\nHope it helps...\r\n\r\nI'm using as dependencies: \r\n\"symfony/symfony\": \"2.7.*\",\r\n\"lightsaml/sp-bundle\": \"^1.0\"\r\n\r\n```\r\nError: Call to a member function removeChild() on a non-object\r\n500 Internal Server Error - FatalErrorException\r\n\r\nStack Trace (Plain Text)   -\r\n[1] Symfony\\Component\\Debug\\Exception\\FatalErrorException: Error: Call to a member function removeChild() on a non-object\r\n    at n/a\r\n        in /var/www/cnh_pbo-cms/vendor/robrichards/xmlseclibs/src/XMLSecurityDSig.php line 489\r\n\r\n    at RobRichards\\XMLSecLibs\\XMLSecurityDSig->validateReference()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Model/XmlDSig/SignatureXmlReader.php line 76\r\n\r\n    at LightSaml\\Model\\XmlDSig\\SignatureXmlReader->validate()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Model/XmlDSig/AbstractSignatureReader.php line 62\r\n\r\n    at LightSaml\\Model\\XmlDSig\\AbstractSignatureReader->validateMulti()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Validator/Model/Signature/SignatureValidator.php line 58\r\n\r\n    at LightSaml\\Validator\\Model\\Signature\\SignatureValidator->validate()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/Assertion/Inbound/AssertionSignatureValidatorAction.php line 56\r\n\r\n    at LightSaml\\Action\\Assertion\\Inbound\\AssertionSignatureValidatorAction->doExecute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/Assertion/AbstractAssertionAction.php line 39\r\n\r\n    at LightSaml\\Action\\Assertion\\AbstractAssertionAction->execute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/CompositeAction.php line 74\r\n\r\n    at LightSaml\\Action\\CompositeAction->execute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/Profile/Inbound/Response/AssertionAction.php line 54\r\n\r\n    at LightSaml\\Action\\Profile\\Inbound\\Response\\AssertionAction->doExecute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/Profile/AbstractProfileAction.php line 41\r\n\r\n    at LightSaml\\Action\\Profile\\AbstractProfileAction->execute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/lightsaml/src/LightSaml/Action/CompositeAction.php line 74\r\n\r\n    at LightSaml\\Action\\CompositeAction->execute()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/sp-bundle/src/LightSaml/SpBundle/Security/Firewall/LightSamlSpListener.php line 67\r\n\r\n    at LightSaml\\SpBundle\\Security\\Firewall\\LightSamlSpListener->receiveSamlResponse()\r\n        in /var/www/cnh_pbo-cms/vendor/lightsaml/sp-bundle/src/LightSaml/SpBundle/Security/Firewall/LightSamlSpListener.php line 50\r\n\r\n    at LightSaml\\SpBundle\\Security\\Firewall\\LightSamlSpListener->attemptAuthentication()\r\n        in /var/www/cnh_pbo-cms/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php line 146\r\n\r\n    at Symfony\\Component\\Security\\Http\\Firewall\\AbstractAuthenticationListener->handle()\r\n        in /var/www/cnh_pbo-cms/app/cache/dev/classes.php line 2574\r\n\r\n    at Symfony\\Component\\Security\\Http\\Firewall->onKernelRequest()\r\n        in /var/www/cnh_pbo-cms/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php line 61\r\n\r\n    at call_user_func()\r\n        in /var/www/cnh_pbo-cms/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php line 61\r\n\r\n    at Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener->__invoke()\r\n        in /var/www/cnh_pbo-cms/app/cache/dev/classes.php line 1834\r\n\r\n    at call_user_func()\r\n        in /var/www/cnh_pbo-cms/app/cache/dev/classes.php line 1834\r\n\r\n    at Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch()\r\n        in /var/www/cnh_pbo-cms/app/cache/dev/classes.php line 1763\r\n\r\n    at Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch()\r\n        in /var/www/cnh_pbo-cms/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php line 124\r\n\r\n    at Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher->dispatch()\r\n        in /var/www/cnh_pbo-cms/app/bootstrap.php.cache line 3099\r\n\r\n    at Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()\r\n        in /var/www/cnh_pbo-cms/app/bootstrap.php.cache line 3072\r\n\r\n    at Symfony\\Component\\HttpKernel\\HttpKernel->handle()\r\n        in /var/www/cnh_pbo-cms/app/bootstrap.php.cache line 3223\r\n\r\n    at Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle()\r\n        in /var/www/cnh_pbo-cms/app/bootstrap.php.cache line 2442\r\n\r\n    at Symfony\\Component\\HttpKernel\\Kernel->handle()\r\n        in /var/www/cnh_pbo-cms/web/app_dev.php line 28\r\n\r\n    at {main}()\r\n        in /var/www/cnh_pbo-cms/web/app_dev.php line 0\r\n```"},"comment":{"url":"https://api.github.com/repos/lightSAML/SpBundle/issues/comments/220305303","html_url":"https://github.com/lightSAML/SpBundle/issues/15#issuecomment-220305303","issue_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/15","id":220305303,"user":{"login":"tmilos","id":1818373,"avatar_url":"https://avatars.githubusercontent.com/u/1818373?v=3","gravatar_id":"","url":"https://api.github.com/users/tmilos","html_url":"https://github.com/tmilos","followers_url":"https://api.github.com/users/tmilos/followers","following_url":"https://api.github.com/users/tmilos/following{/other_user}","gists_url":"https://api.github.com/users/tmilos/gists{/gist_id}","starred_url":"https://api.github.com/users/tmilos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmilos/subscriptions","organizations_url":"https://api.github.com/users/tmilos/orgs","repos_url":"https://api.github.com/users/tmilos/repos","events_url":"https://api.github.com/users/tmilos/events{/privacy}","received_events_url":"https://api.github.com/users/tmilos/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T12:08:16Z","updated_at":"2016-05-19T12:08:16Z","body":"@alberto-coolshop \r\nI was not able to reproduce the same removeChild() on a non-object error, but I noticed that IDP certificate was expired since it's valid to 2016-01-30 14:35:57 which was past time at the moment you reported this at Feb 11, same as the encryption certificate. And I'm getting ``LightSamlSecurityException`` 'Unable to verify Signature' thrown from [SignatureXmlReader at line 83](https://github.com/lightSAML/lightSAML/blob/10de356e33ffd5268a147eb0bcea19c3d151f8bf/src/LightSaml/Model/XmlDSig/SignatureXmlReader.php#L83). Guess the reason of failed signature validation I got is expired IDP certificate.\r\n\r\nI can not see a reason for that removeChild() on a non-object error, but eventually I may get it if I reproduce the whole flow starting from the received SAML Response, and in order to do that, I would need all **unmodified** log rows from that http request (to get the original SAML Response message) and your private key the assertion in encrypted for (so I'm able to decrypt it).\r\n"}}