Hi everybody.
I am new to simpleSAMLphp.
I am trying to develop and test a plugin for a web application
developed with symfony 1.4, in order to use the application as a
service provider with simpleSAMLphp authentication.
Normally, when a user tries to access the page
http://127.0.0.1/frontend_dev.php/profile, he's redirected to the
login form,
and after having logged in, redirected again to the page where he came
from.
Now, I managed to obtain that, instead of the ordinary login form, the
user
is redirected to simpleSAMLphp login page.
But when the user logs in, he should be redirected to
http://127.0.0.1/frontend_dev.php/profile, but he's not and he gets a
page stating "The page isn't redirecting properly. Firefox has
detected
that the server is redirecting the request for this address in a way
that will never complete."
The URL that I see in the browser is the following:
http://127.0.0.1/saml/module.php/core/loginuserpass.php?AuthState=_8eefdfc6458fc9d1707526db59e4747da2f6e7d993%3Ahttp%3A%2F%2F127.0.0.1%2Fsaml%2Fmodule.php%2Fcore%2Fas_login.php%3FAuthId%3Dexample-userpass%26ReturnTo%3Dhttp%253A%252F%252F127.0.0.1%252Ffrontend_dev.php%252Fprofile
The "ReturnTo" part actually states the correct address.
In the log file, I can read lines saying:
Session: 'example-userpass' not valid because we are not
authenticated.
Template: Reading [/var/schoolmesh/lib/vendor/simplesamlphp/
dictionaries/login]
Deleting state: '_5a5d67a06a044003a5aee98ee6e8916665152fca1d'
Session: doLogin("example-userpass")
Session: 'example-userpass' not valid because we are not
authenticated.
Session: Valid session found with 'example-userpass'.
the latter being repeated many other times (the complete log is here:
http://pastebin.com/jnHsQynK).
If the user points the browser directly to
http://127.0.0.1/saml/module.php/core/authenticate.php?as=example-userpass,
he can see that he is authenticated:
------------
Your attributes
User ID loris
Affiliation
member
loris
------------
My plugin's logs show that the function isAuthenticated() of the
instance of class SimpleSAML_Auth_Simple that I created returns false.
Could anybody help me giving me some advice about what I could
investigate further?
Thank you in advance
Loris