ERROR ACCESING TO SIMPLESAMLPHP IDP URL

35 views
Skip to first unread message

Daniel Mérida

unread,
Dec 19, 2011, 4:22:01 AM12/19/11
to simple...@googlegroups.com
Hi to all:

When I'm trying to access to the SimpleSamlPHP IDP in my installation (https://example.org/simplesaml/module.php/openidProvider/server.php), I get this error:
Catchable fatal error: Argument 1 passed to sspmod_openidProvider_Server::sendResponse() must be an instance of Auth_OpenID_ServerResponse, null given, called in /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on line 424 and defined in /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on line 336
I can make the authentication in normal access to SimpleSamlPHP and I have configured it in order to connect my SimpleSamlPHP IdP using OpenId

Regards,
Dani

Peter Schober

unread,
Dec 19, 2011, 5:11:47 AM12/19/11
to simple...@googlegroups.com
* Daniel M�rida <dme...@lcc.uma.es> [2011-12-19 10:22]:

> When I'm trying to access to the SimpleSamlPHP IDP in my
> installation (https://example.org/simplesaml/module.php/openidProvider/server.php),
> I get this error:
>
> /Catchable fatal error: Argument 1 passed to

> sspmod_openidProvider_Server::sendResponse() must be an instance of
> Auth_OpenID_ServerResponse, null given, called in
> /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on
> line 424 and defined in
> /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on
> line 336/

Exact how to you access this URL?
-peter

Peter Schober

unread,
Dec 19, 2011, 5:12:36 AM12/19/11
to simple...@googlegroups.com
Oh, and please stop shouting,
-peter

Daniel Mérida

unread,
Dec 19, 2011, 5:20:26 AM12/19/11
to simple...@googlegroups.com
I access to SimpleSamlPHP IDP accesing to this URL:
http://localhost//simplesaml/module.php/openidProvider/server.php
Dani

El 19/12/2011 11:11, Peter Schober escribi�:

Daniel Mérida

unread,
Dec 19, 2011, 5:37:19 AM12/19/11
to simple...@googlegroups.com
I access to SimpleSamlPHP IDP accesing to this URL:
http://localhost//simplesaml/module.php/openidProvider/server.php
I don't understand your question.
Dani

El 19/12/2011 11:11, Peter Schober escribi�:

Peter Schober

unread,
Dec 19, 2011, 6:03:45 AM12/19/11
to simple...@googlegroups.com
* Daniel M�rida <dme...@lcc.uma.es> [2011-12-19 11:37]:

> I access to SimpleSamlPHP IDP accesing to this URL:
> http://localhost//simplesaml/module.php/openidProvider/server.php
> I don't understand your question.

Well, from the error message I would assume that you cannot type the
above URL into your webbrowser and acccess the software that way.
So unless you say otherwise I assume that's just what you are doing,
hence the error.
-peter

Daniel Mérida

unread,
Dec 19, 2011, 6:06:11 AM12/19/11
to simple...@googlegroups.com
Ok, so I have to access this URL only from my software, not directly in
the browser.
I am going to try it.

Thanks,
Dani

El 19/12/2011 12:03, Peter Schober escribi�:

Peter Schober

unread,
Dec 19, 2011, 6:09:30 AM12/19/11
to simple...@googlegroups.com
* Daniel M�rida <dme...@lcc.uma.es> [2011-12-19 12:06]:

> Ok, so I have to access this URL only from my software, not directly
> in the browser.
> I am going to try it.

I have no idea what you have to do. Isn't there documentation for that
piece of code you're using, e.g. in the module's doc directory?
-peter

Peter Schober

unread,
Dec 19, 2011, 6:14:26 AM12/19/11
to simple...@googlegroups.com
* Daniel M�rida <dme...@lcc.uma.es> [2011-12-19 12:06]:

> Ok, so I have to access this URL only from my software, not directly
> in the browser.

In the thread with the wonderful subject "HOW TO DEPLOY SIMPLSAMLPHP
IN JETTY" you asked what the endpoint URL for the OpenID provider
module in SimpleSAMLphp was (more or less) so that you could configure
it in some other software. Olav then told you what the URL should look
like.
If you don't know what to do with that endpoint why ask for it?
-peter

Daniel Mérida

unread,
Dec 19, 2011, 6:22:54 AM12/19/11
to simple...@googlegroups.com
I do know what I want to do with the endpoint URL about I asked in the
another forum thread, but when I configure SimpleSamlPHP, I try this URL
first in the browser in order to check if it works, before starting to
modify my software.

As I get the error I mentioned previously, I thought that this error is
caused by an error in my configuration.
Now, I have written previously, I am going to check if this URL works in
my software, in order to check if the errror is caused by using the URL
in the browser or by an error in my configuration.

I hope to have my explanation is clear and was not very confusing.

El 19/12/2011 12:14, Peter Schober escribi�:

Daniel Mérida

unread,
Dec 19, 2011, 7:10:29 AM12/19/11
to simple...@googlegroups.com
I have just modified my software and included the URL in it, but I keep on getting the same error:


Catchable fatal error: Argument 1 passed to sspmod_openidProvider_Server::sendResponse() must be an instance of Auth_OpenID_ServerResponse, null given, called in /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on line 424 and defined in /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on line 336

Is it a severe error?

Dani


El 19/12/2011 12:22, Daniel Mérida escribió:
I do know what I want to do with the endpoint URL about I asked in the another forum thread, but when I configure SimpleSamlPHP, I try this URL first in the browser in order to check if it works, before starting to modify my software.

As I get the error I mentioned previously, I thought that this error is caused by an error in my configuration.
Now, I have written previously, I am going to check if this URL works in my software, in order to check if the errror is caused by using the URL in the browser or by an error in my configuration.

I hope to have my explanation is clear and was not very confusing.

El 19/12/2011 12:14, Peter Schober escribió:
* Daniel Mérida<dme...@lcc.uma.es>  [2011-12-19 12:06]:

Olav Morken

unread,
Dec 19, 2011, 8:25:49 AM12/19/11
to simple...@googlegroups.com
On Mon, Dec 19, 2011 at 13:10:29 +0100, Daniel M�rida wrote:
> I have just modified my software and included the URL in it, but I
> keep on getting the same error:
>
> /Catchable fatal error: Argument 1 passed to

> sspmod_openidProvider_Server::sendResponse() must be an instance of
> Auth_OpenID_ServerResponse, null given, called in
> /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on
> line 424 and defined in
> /var/simplesamlphp-1.8.0/modules/openidProvider/lib/Server.php on
> line 336/

>
> Is it a severe error?

It would indicate that something went wrong with the response
generation. Is something else logged, or is that the only message
that is logged?

Best regards,
Olav Morken
UNINETT / Feide

Daniel Mérida

unread,
Dec 19, 2011, 10:21:11 AM12/19/11
to simple...@googlegroups.com
I get the error in both cases: when something else is logged and there
is nobody logged

Dani

El 19/12/2011 14:25, Olav Morken escribi�:

Olav Morken

unread,
Dec 20, 2011, 1:42:40 AM12/20/11
to simple...@googlegroups.com
On Mon, Dec 19, 2011 at 16:21:11 +0100, Daniel M�rida wrote:
> I get the error in both cases: when something else is logged and
> there is nobody logged

Logged as in written to log files, not logged in. I was thinking of
the Apache error log and syslog. By default available as something like
/var/log/apache2/error_log and /var/log/syslog or something like that
(it depends on the OS you have installed on your server).

Daniel Mérida

unread,
Jan 12, 2012, 5:25:21 AM1/12/12
to simple...@googlegroups.com
Hi Olav and Peter:

Ok, I mistake logs for log in.
Apache log (error_log in my case) doesn't show anything wrong.
I keep on thinking that the error could be in the way I have configured,
but I have check the guide and I followed all the steps or it's what I
believe.

Regards,
Dani

El 20/12/2011 7:42, Olav Morken escribi�:

Daniel Mérida

unread,
Feb 1, 2012, 8:10:20 AM2/1/12
to simple...@googlegroups.com
I have gone into the code and I have found out something:

The error I have is produced by the function sendResponse() of
sspmod_openidProvider_server receive a null parameter instead a instance
of Auth_OpenID_ServerResponse
Previously to the sendResponse() call, the function handleRequest() of
Auth_OpenID_Server is called and this is the responsible of the null
parameter:

function handleRequest($request)
{
if (method_exists($this, "openid_" . $request->mode)) {
$handler = array($this, "openid_" . $request->mode);
return call_user_func($handler, &$request);
}
return null;
}

Is available any kind of log in SimpleSamlPhp instead of adding my own
log lines into the code?
I will keep going into the code trying to find out anything more.

Dani

El 12/01/2012 11:25, Daniel M�rida escribi�:

Olav Morken

unread,
Feb 1, 2012, 9:38:47 AM2/1/12
to simple...@googlegroups.com
On Wed, Feb 01, 2012 at 14:10:20 +0100, Daniel M�rida wrote:
> Is available any kind of log in SimpleSamlPhp instead of adding my
> own log lines into the code?

Not sure what you are asking here. If you are asking how to log
something through simpleSAMLphp's log code, you can do that by
invoking functions on SimpleSAML_Logger. E.g.:

SimpleSAML_Logger::error('Oops... some error occured.');

Daniel Mérida

unread,
Feb 1, 2012, 10:05:27 AM2/1/12
to simple...@googlegroups.com
Thanks, I going to try it.
But when can I read the log that SimpleSamlPhp will generate?

Regards,
Dani

El 01/02/2012 15:38, Olav Morken escribi�:

Olav Morken

unread,
Feb 2, 2012, 1:47:33 AM2/2/12
to simple...@googlegroups.com
On Wed, Feb 01, 2012 at 16:05:27 +0100, Daniel M�rida wrote:
> Thanks, I going to try it.
> But when can I read the log that SimpleSamlPhp will generate?

I assume you meant "where" rather than "when", and the answer depends
on your configuration and the system it runs on. In the default
configuration, it is logged to syslog. On most Linux installations, you
can find the log in /var/log/syslog or /var/log/messages or something
like that.

You can also change the configuration to log elsewhere by changing the
'logging.handler' option in config/config.php.

Reply all
Reply to author
Forward
0 new messages