<html><head></head><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:14px"><div id="yui_3_16_0_1_1446948873215_3069"><span>Hi,&nbsp;</span></div><div id="yui_3_16_0_1_1446948873215_3069"><span id="yui_3_16_0_1_1446948873215_3130">&nbsp; &nbsp; &nbsp;Can anybody help me on this ? &nbsp;&nbsp;</span></div><div id="yui_3_16_0_1_1446948873215_3069"><span id="yui_3_16_0_1_1446948873215_3554">&nbsp; &nbsp; &nbsp;Not sure why the post format &nbsp;shown in forum is in a mess, so I attach the context as a text file .</span>&nbsp;</div><div id="yui_3_16_0_1_1446948873215_3069"><span><br></span></div><div id="yui_3_16_0_1_1446948873215_3069"><span>&nbsp; &nbsp;T.I.A.</span></div><div id="yui_3_16_0_1_1446948873215_3069"><span><br></span></div><br>  <div style="font-family: garamond, 'new york', times, serif;" id="yui_3_16_0_1_1446948873215_3057"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_1_1446948873215_3056"> <div dir="ltr" id="yui_3_16_0_1_1446948873215_3055" style="font-size: 16px;"> ----- Forwarded Message -----<br>  <font size="2" face="Arial" id="yui_3_16_0_1_1446948873215_3058"> <b><span style="font-weight:bold;">From:</span></b> Mai Zi &lt;ornot2008@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "keycloak-user@lists.jboss.org" &lt;keycloak-user@lists.jboss.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, November 6, 2015 12:22 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Can not make SAML2.0  work  anyway.<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1446948873215_3131"><br><div id="yiv5916828743"><div id="yui_3_16_0_1_1446948873215_3133"><div style="color: rgb(0, 0, 0); font-family: garamond, 'new york', times, serif; background-color: rgb(255, 255, 255);" id="yui_3_16_0_1_1446948873215_3132"><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" style="font-size: 14px;">Hi, &nbsp;there,</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><span style="font-size: 14px;" id="yui_3_16_0_1_1446948873215_3322">&nbsp; </span><font size="3" id="yui_3_16_0_1_1446948873215_3274">&nbsp;I am trying &nbsp; version is 1.6.0 &nbsp;keycloak 's brokering. &nbsp;I have imported &nbsp;two realms :saml-broker-realm.json and&nbsp;saml-broker-authentication-realm.json&nbsp;</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3298">&nbsp; &nbsp;by following the readme in the broker example. &nbsp;It works fine ( except failed logout somehow)</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3"><br></font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175"><font size="3" id="yui_3_16_0_1_1446948873215_3297">&nbsp; Now I decide to give more try and here is my steps:</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175"><font size="3"><br></font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175"><font size="3"><br></font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3294">1) &nbsp;Create a realm named testsaml and the saml descriptor can be found here: &nbsp; &nbsp;<a rel="nofollow" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://localhost:8080/auth/realms/testsaml/protocol/saml/descriptor" id="yiv5916828743yui_3_16_0_1_1446773839297_10998">http://localhost:8080/auth/realms/testsaml/protocol/saml/descriptor</a></font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3295">2) &nbsp;In the &nbsp; &nbsp;saml-broker-authentication-realm, &nbsp;create a new ID provider named saml &nbsp;by importing the URL above:&nbsp;<a rel="nofollow" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://localhost:8080/auth/realms/testsaml/protocol/saml/descriptor" id="yiv5916828743yui_3_16_0_1_1446773839297_10998" style="background-color:rgb(255, 255, 255);" class="yiv5916828743">http://localhost:8080/auth/realms/testsaml/protocol/saml/descriptor</a>&nbsp;</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3292">3) &nbsp;Download &nbsp;the SP metadata named "keycloak.xml" from the export tab page. &nbsp;</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3291">4) &nbsp;Go to the testsaml reaml, and create a client by importing the downloaded "keycloak.xml" &nbsp;</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3290">5) &nbsp;open the page : &nbsp;&nbsp;<a rel="nofollow" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://localhost:8080/saml-broker-authentication" id="yiv5916828743yui_3_16_0_1_1446773839297_26288">http://localhost:8080/saml-broker-authentication</a>&nbsp;and can see &nbsp;the IDprovider named saml &nbsp;on the left.&nbsp;</font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3289">6) &nbsp; login with the ID provider but finally get the errors as below:</font></div><font size="3" id="yui_3_16_0_1_1446948873215_3395"><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28731" style="font-weight: bold; display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;"><div><div class="yiv5916828743" style="font-weight: bold; display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;"><br></div></div><font id="yui_3_16_0_1_1446948873215_3239">Context Path:</font></div><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28733" style="display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;">/auth</div></font><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" class="yiv5916828743"><font size="3"><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif; font-weight: bold;" id="yui_3_16_0_1_1446948873215_3135">Servlet Path:</span><br></font></div><font id="yui_3_16_0_1_1446948873215_3256" size="3"><div class="yiv5916828743" style="display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28740"></div><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28746" style="font-weight: bold; display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;">Path Info:</div><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28748" style="display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;">/realms/saml-broker-authentication-realm/broker/saml/endpoint</div></font><div id="yiv5916828743yui_3_16_0_1_1446773839297_29391"><font size="3" id="yui_3_16_0_1_1446948873215_3394"><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28754" style="font-weight: bold; display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;">Query String:</div><div class="yiv5916828743" id="yiv5916828743yui_3_16_0_1_1446773839297_28756" style="display: inline-block; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;">null</div></font><div dir="ltr" id="yiv5916828743yui_3_16_0_1_1446773839297_28770"><font id="yui_3_16_0_1_1446948873215_3240" size="3"><b style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28760" class="yiv5916828743">Stack Trace</b><br style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28762" class="yiv5916828743"><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28764" class="yiv5916828743">java.lang.RuntimeException: request path: /auth/realms/saml-broker-authentication-realm/broker/saml/endpoint</span><br style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28766" class="yiv5916828743"><span style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Trebuchet MS', Helvetica, Arial, Verdana, sans-serif;" id="yiv5916828743yui_3_16_0_1_1446773839297_28768" class="yiv5916828743">org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:75)</span></font><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" style="font-size: 14px;">......</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;">So what happened for my configuration? &nbsp; I missed something?</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;">T.I.A.</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;">Maizi</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;"><br></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr" style="font-size: 14px;">.&nbsp;</div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" style="font-size: 14px;"><br></div></div></div></div></div><br><br></div> </div> </div>  </div></body></html>