<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, </span></div><div id="yui_3_16_0_1_1446948873215_3069"><span id="yui_3_16_0_1_1446948873215_3130"> Can anybody help me on this ? </span></div><div id="yui_3_16_0_1_1446948873215_3069"><span id="yui_3_16_0_1_1446948873215_3554"> Not sure why the post format shown in forum is in a mess, so I attach the context as a text file .</span> </div><div id="yui_3_16_0_1_1446948873215_3069"><span><br></span></div><div id="yui_3_16_0_1_1446948873215_3069"><span> 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 <ornot2008@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "keycloak-user@lists.jboss.org" <keycloak-user@lists.jboss.org> <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, 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"> </span><font size="3" id="yui_3_16_0_1_1446948873215_3274"> I am trying version is 1.6.0 keycloak 's brokering. I have imported two realms :saml-broker-realm.json and saml-broker-authentication-realm.json </font></div><div id="yiv5916828743yui_3_16_0_1_1446773839297_4175" dir="ltr"><font size="3" id="yui_3_16_0_1_1446948873215_3298"> by following the readme in the broker example. 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"> 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) Create a realm named testsaml and the saml descriptor can be found here: <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) In the saml-broker-authentication-realm, create a new ID provider named saml by importing the URL above: <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> </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) Download the SP metadata named "keycloak.xml" from the export tab page. </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) Go to the testsaml reaml, and create a client by importing the downloaded "keycloak.xml" </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) open the page : <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> and can see the IDprovider named saml on the left. </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) 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? 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;">. </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>