BeSimple/BeSimpleSsoAuthBundle — Issue #7: The bundle asks two times to the serviceValidate
Author: sgomez
Created: 2012-01-15 10:32:26+00:00
State: open

I get this from my apache log after I returned from the CAS validation:

> ::1 - - [15/Jan/2012:10:27:26 +0100] "GET /simplesaml/module.php/casserver/login.php?service=http%3A%2F%2Flocalhost%2F%7Esergio%2Fconsigna%2Fweb%2Fapp_dev.php%2Flogin_check HTTP/1.1" 302 723
> ::1 - - [15/Jan/2012:10:27:26 +0100] "GET /simplesaml/module.php/casserver/serviceValidate.php?service=http%3A%2F%2Flocalhost%2F%7Esergio%2Fconsigna%2Fweb%2Fapp_dev.php%2Flogin_check&ticket=ST-607b07a3fb5c1aa87a2af35e64a19f46837078611f HTTP/1.1" 200 276
> ::1 - - [15/Jan/2012:10:27:26 +0100] "GET /simplesaml/module.php/casserver/serviceValidate.php?service=http%3A%2F%2Flocalhost%2F%7Esergio%2Fconsigna%2Fweb%2Fapp_dev.php%2Flogin_check&ticket=ST-607b07a3fb5c1aa87a2af35e64a19f46837078611f HTTP/1.1" 200 276
> ::1 - - [15/Jan/2012:10:27:26 +0100] "GET /~sergio/consigna/web/app_dev.php/login_check?ticket=ST-607b07a3fb5c1aa87a2af35e64a19f46837078611f HTTP/1.1" 302 565

The bundle is asking to the service Validation two times and this is a problem for me because the CAS server removes the ticket after the first access. Anyway, I guess this should not happen.

The first time is in SsoAuthBundle/Security/Http/Firewall/TrustedSsoAuthenticationListener.php and the second is in SsoAuthBundle/Security/Core/Authentication/Token/SsoToken.php