i am trying to implement a logout procedure in my web application. I use a Shibboleth SP in my application and SimmpleSAMLphp is my Identity Provider.
I implemented a custom login procedure in my application with a custom HTTP Client (Guzzle), that it calls a login form on the idp... The login routine works well..in the idp's log i see the info and the user is logged in my application.
The logout routine is implemented with the call to the SLO IdP url (i see the docs here:
https://simplesamlphp.org/docs/stable/simplesamlphp-idp-more#section_5). There aren't errors or exception...but, unfortunately, the user stays connected.
This is my log on the IdP:
Aug 29 16:31:16 simplesamlphp INFO [725a48bd27] SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService
Aug 29 16:31:16 simplesamlphp INFO [725a48bd27] SAML2.0 - IdP.SSOService: IdP initiated authentication: '
https://MYAPPLICATION/SP/shibboleth'
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Session: 'YYYYYYYY' not valid because we are not authenticated.
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Saved state: '_f2e0e542e08509ec0d4c1c50e6cc080fc5c0201530:
https://MYIDP/simplesaml/saml2/idp/SSOService.php?spentityid=https%3A%2F%MYAPPLICATION%2Fshibboleth&cookieTime=1504017076'
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Loading state: '_f2e0e542e08509ec0d4c1c50e6cc080fc5c0201530:
https://MYIDPsimplesaml/saml2/idp/SSOService.php?spentityid=https%3A%2F%2FMYAPPLICATION%2Fshibboleth&cookieTime=1504017076'
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Template: Reading [/var/www/html/simplesamlphp/dictionaries/login]
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Loading state: '_f2e0e542e08509ec0d4c1c50e6cc080fc5c0201530:
https://MYIDP/simplesaml/saml2/idp/SSOService.php?spentityid=https%3A%2F%2FMYAPPLICATION%2Fshibboleth&cookieTime=1504017076'
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Loading state: '_f2e0e542e08509ec0d4c1c50e6cc080fc5c0201530:
https://MYIDP/simplesaml/saml2/idp/SSOService.php?spentityid=https%3A%2F%2FMYAPPLICATION%2Fshibboleth&cookieTime=1504017076'
Aug 29 16:31:16 simplesamlphp NOTICE STAT [725a48bd27] User 'XXXXXXXXXXX' has been successfully authenticated.
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Deleting state: '_f2e0e542e08509ec0d4c1c50e6cc080fc5c0201530'
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Session: doLogin("YYYYYYYY")
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Session: Valid session found with 'ZZZZ'.
Aug 29 16:31:16 simplesamlphp DEBUG [725a48bd27] Session: Valid session found with 'ZZZZ'.
------------------------
Aug 29 16:32:29 simplesamlphp INFO [e06a2b4077] SAML2.0 - IdP.SingleLogoutService: Accessing SAML 2.0 IdP endpoint SingleLogoutService
Aug 29 16:32:29 simplesamlphp DEBUG [e06a2b4077] Saved state: '_5e749bc3a99e17642372d04401633178eba1d71b04'
Aug 29 16:32:29 simplesamlphp DEBUG [e06a2b4077] Session: 'YYYYYYYY' not valid because we are not authenticated.
Aug 29 16:32:29 simplesamlphp DEBUG [e06a2b4077] Loading state: '_5e749bc3a99e17642372d04401633178eba1d71b04'
The log on the SP receive the message when the user is logged in...when i try to disconnect the user, the SP don't receives any message from the IdP.
Any ideas as to what else I should check to diagnose this problem?
Thank you for the help and sorry for my english!!
Francesco Sansone