SingleLogoutService with OIOSAML & simplesamlphp

542 views
Skip to first unread message

rpnz

unread,
Jul 11, 2010, 4:48:55 PM7/11/10
to simpleSAMLphp
Hi,

I have been trying to use the SingleLogoutService by hitting the url "/
saml/Logout" but I get the

following exception

java.lang.ClassCastException:
org.opensaml.saml2.core.impl.LogoutResponseImpl cannot be cast to
org.opensaml.saml2.core.LogoutRequest
at
dk.itst.oiosaml.sp.model.OIOLogoutRequest.fromRedirectRequest(OIOLogoutRequest.java:
92)
at
dk.itst.oiosaml.sp.service.LogoutServiceHTTPRedirectHandler.handleGet(LogoutServiceHTTPRedirectHandler.java:
72)
at
dk.itst.oiosaml.sp.service.DispatcherServlet.doGet(DispatcherServlet.java:
142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)



The idp is a test system running simpleSAMLphp.

Hope you can help.



Raj

Olav Morken

unread,
Jul 12, 2010, 4:44:58 AM7/12/10
to simple...@googlegroups.com
On Sun, Jul 11, 2010 at 13:48:55 -0700, rpnz wrote:
> Hi,
>
> I have been trying to use the SingleLogoutService by hitting the url "/
> saml/Logout" but I get the
>
> following exception
>
> java.lang.ClassCastException:
> org.opensaml.saml2.core.impl.LogoutResponseImpl cannot be cast to
> org.opensaml.saml2.core.LogoutRequest
> at
> dk.itst.oiosaml.sp.model.OIOLogoutRequest.fromRedirectRequest(OIOLogoutRequest.java:

This looks like a problem in OIOSAML, which for some reason is
attempting to cast a LogoutResponse message to a LogoutRequest.
Is OIOSAML using a different endpoint for LogoutResponse messages than
LogoutRequest messages? If that is the case, the problem could be that
you haven't specified the response-location when configuring the
saml20-sp-remote metadata on the IdP.

If that isn't the problem, I think you are better off asking the people
behind OIOSAML.

--
Olav Morken
UNINETT / Feide

rpnz

unread,
Jul 13, 2010, 1:30:18 AM7/13/10
to simpleSAMLphp
yes, that was the problem.
The response-location was not configured in the saml20-sp-remote
metadata on the IdP.

Thanks for your help.

shivanshy...@gmail.com

unread,
Feb 27, 2020, 2:32:05 AM2/27/20
to SimpleSAMLphp
I'm getting the same error, can you please let me know what change made it work 
Reply all
Reply to author
Forward
0 new messages