<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:13px"><div><span></span></div><div id="yui_3_16_0_1_1430389558890_4636">Bill - That would be an issue for us as we cannot manipulate the values (especially username) sent by an external IDP which is the authoritative source of user information. We will have to figure out another way, perhaps, an internal KC user attribute that can be made unique to prevent name clashes.</div><div id="yui_3_16_0_1_1430389558890_4638"><br></div><div id="yui_3_16_0_1_1430389558890_4640">Thanks,</div><div id="yui_3_16_0_1_1430389558890_4639">Raghu<br> </div><div id="yui_3_16_0_1_1430389558890_4602" style="font-family: times new roman, new york, times, serif; font-size: 13px;"> <div id="yui_3_16_0_1_1430389558890_4601" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1430389558890_4600" dir="ltr"> <hr size="1" id="yui_3_16_0_1_1430389558890_4603"> <font id="yui_3_16_0_1_1430389558890_4599" face="Arial" size="2"> <b><span style="font-weight: bold;">From:</span></b> Bill Burke <bburke@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Henk Laracker <Henk.Laracker@planonsoftware.com>; "keycloak-user@lists.jboss.org" <keycloak-user@lists.jboss.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 30, 2015 7:26 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [keycloak-user] IDP SAMLV2.0 with Salesforce<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1430389558890_4657"><br>Right now, the username is prefixed with the broker name. THis is to<br clear="none">avoid name clashes if you are brokering multiple IDPS (i.e. multiple<br clear="none">social providers).<br clear="none"><br clear="none">On 4/30/2015 2:51 PM, Henk Laracker wrote:<br clear="none">> Hi Bill,<br clear="none">> <br clear="none">> Thank you this worked out! I user is created with my name<br clear="none">> <a href="mailto:saml.henk.laracker@p" shape="rect" ymailto="mailto:saml.henk.laracker@p">saml.henk.laracker@p</a>***n.nl , do you have any idee why the “saml” prefix<br clear="none">> is added?<br clear="none">> <br clear="none">> <br clear="none">> Henk<br clear="none">> <br clear="none">> On 30/04/15 18:44, "Bill Burke" <<a href="mailto:bburke@redhat.com" shape="rect" ymailto="mailto:bburke@redhat.com">bburke@redhat.com</a>> wrote:<br clear="none">> <br clear="none">>> Ok, I was able to get this to work. The problem was I had to set a<br clear="none">>> "profile" for the connected app on Salesforce. I added a "System<br clear="none">>> Adminstrator" profile to the Connected App and it worked.<br clear="none">>><br clear="none">>> I'm not sure how to upload a app certificate yet. Not sure what format<br clear="none">>> Salesforce is looking for.<br clear="none">>><br clear="none">>> On 4/30/2015 11:39 AM, Bill Burke wrote:<br clear="none">>>> I set up a salesforce example and looked at the login response SAML<br clear="none">>>> document. Looks like no assertion data is being sent back at all by<br clear="none">>>> salesforce.<br clear="none">>>><br clear="none">>>> On 4/30/2015 9:43 AM, Bill Burke wrote:<br clear="none">>>>> i have no idea. Basically this error is stating that the login<br clear="none">>>>> response<br clear="none">>>>> saml document has no assertions within it. If there are no assertions,<br clear="none">>>>> then there has been no identity data sent.<br clear="none">>>>><br clear="none">>>>> I'm looking now, but can you send me a link on how to set up Salesforce<br clear="none">>>>> as an IDP? Is one able to set up a free account and such?<br clear="none">>>>><br clear="none">>>>> On 4/30/2015 9:25 AM, Henk Laracker wrote:<br clear="none">>>>>> Hi Bill,<br clear="none">>>>>><br clear="none">>>>>> I don¹t know why I missed that, thanks! Salesforce respons know with<br clear="none">>>>>> the<br clear="none">>>>>> correct login page. After logging in in Salesforce, I¹m redirected to<br clear="none">>>>>> keycloak again with a internal error:<br clear="none">>>>>><br clear="none">>>>>> Caused by: org.keycloak.broker.provider.IdentityBrokerException:<br clear="none">>>>>> Could not<br clear="none">>>>>> process response from SAML identity provider.<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint$Binding.handleLoginResponse(SAMLE<br clear="none">>>>>> ndpo<br clear="none">>>>>> int.java:299)<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint$Binding.handleSamlResponse(SAMLEn<br clear="none">>>>>> dpoi<br clear="none">>>>>> nt.java:343)<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint$Binding.execute(SAMLEndpoint.java<br clear="none">>>>>> :169<br clear="none">>>>>> )<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint.postBinding(SAMLEndpoint.java:117<br clear="none">>>>>> )<br clear="none">>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br clear="none">>>>>> [rt.jar:1.8.0_45]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja<br clear="none">>>>>> va:6<br clear="none">>>>>> 2) [rt.jar:1.8.0_45]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso<br clear="none">>>>>> rImp<br clear="none">>>>>> l.java:43) [rt.jar:1.8.0_45]<br clear="none">>>>>> at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.ja<br clear="none">>>>>> va:1<br clear="none">>>>>> 37) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMe<br clear="none">>>>>> thod<br clear="none">>>>>> Invoker.java:296) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvo<br clear="none">>>>>> ker.<br clear="none">>>>>> java:250) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(Res<br clear="none">>>>>> ourc<br clear="none">>>>>> eLocatorInvoker.java:140) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorIn<br clear="none">>>>>> voke<br clear="none">>>>>> r.java:109) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(Res<br clear="none">>>>>> ourc<br clear="none">>>>>> eLocatorInvoker.java:135) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorIn<br clear="none">>>>>> voke<br clear="none">>>>>> r.java:103) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatc<br clear="none">>>>>> her.<br clear="none">>>>>> java:356) [resteasy-jaxrs-3.0.10.Final.jar:]<br clear="none">>>>>> ... 39 more<br clear="none">>>>>> Caused by: org.keycloak.broker.provider.IdentityBrokerException: No<br clear="none">>>>>> assertion from response.<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint$Binding.getAssertion(SAMLEndpoint<br clear="none">>>>>> .jav<br clear="none">>>>>> a:309)<br clear="none">>>>>> at<br clear="none">>>>>><br clear="none">>>>>> org.keycloak.broker.saml.SAMLEndpoint$Binding.handleLoginResponse(SAMLE<br clear="none">>>>>> ndpo<br clear="none">>>>>> int.java:264)<br clear="none">>>>>> ... 54 more<br clear="none">>>>>><br clear="none">>>>>> Any idea?<br clear="none">>>>>><br clear="none">>>>>> Henk<br clear="none">>>>>><br clear="none">>>>>><br clear="none">>>>>><br clear="none">>>>>><br clear="none">>>>>> On 30/04/15 14:31, "Bill Burke" <<a href="mailto:bburke@redhat.com" shape="rect" ymailto="mailto:bburke@redhat.com">bburke@redhat.com</a>> wrote:<br clear="none">>>>>><br clear="none">>>>>>> You want to chain keycloak server to Salesforce?<br clear="none">>>>>>><br clear="none">>>>>>> If you create a SAMLv2 IdentityProvider in keycloak that points to<br clear="none">>>>>>> Salesforce, you;ll see after you create it, an Export button. Click<br clear="none">>>>>>> that. That will create an entity descriptor with all the information<br clear="none">>>>>>> you need.<br clear="none">>>>>>><br clear="none">>>>>>> On 4/30/2015 2:45 AM, Henk Laracker wrote:<br clear="none">>>>>>>> Hi,<br clear="none">>>>>>>><br clear="none">>>>>>>> I like to use Salesforce as Identity Provider, the metadata<br clear="none">>>>>>>> provided by<br clear="none">>>>>>>> salesforce can be imported.<br clear="none">>>>>>>> But I need to specify the Service Provider in salesforce, I have to<br clear="none">>>>>>>> fill<br clear="none">>>>>>>> in a couple of fields, but two of them I don¹t understand (and are<br clear="none">>>>>>>> mandatory). Does someone have any clue<br clear="none">>>>>>>><br clear="none">>>>>>>> 1. entity id , remark of salesforce : get this value from your<br clear="none">>>>>>>> serviceprovider<br clear="none">>>>>>>> 2. ACS URL, remark of slaesforce : The assertion consumer<br clear="none">>>>>>>> service. Get<br clear="none">>>>>>>> this value from your service provider.<br clear="none">>>>>>>><br clear="none">>>>>>>> I have tried a lot of values but every-time I click the saml button<br clear="none">>>>>>>> on<br clear="none">>>>>>>> my app, it redirects to salesforce but I get a page with the error :<br clear="none">>>>>>>> Error: Unable to resolve request into a Service Provider<br clear="none">>>>>>>><br clear="none">>>>>>>> Henk<br clear="none">>>>>>>><br clear="none">>>>>>>><br clear="none">>>>>>>> _______________________________________________<br clear="none">>>>>>>> keycloak-user mailing list<br clear="none">>>>>>>> <a href="mailto:keycloak-user@lists.jboss.org" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none">>>>>>>> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank" shape="rect">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br clear="none">>>>>>>><br clear="none">>>>>>><br clear="none">>>>>>> --<br clear="none">>>>>>> Bill Burke<br clear="none">>>>>>> JBoss, a division of Red Hat<br clear="none">>>>>>> <a href="http://bill.burkecentral.com/" target="_blank" shape="rect">http://bill.burkecentral.com</a><div class="qtdSeparateBR"><br><br></div><div class="yqt4376269470" id="yqtfd63889"><br clear="none">>>>>>> _______________________________________________<br clear="none">>>>>>> keycloak-user mailing list<br clear="none">>>>>>> <a href="mailto:keycloak-user@lists.jboss.org" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none">>>>>>> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank" shape="rect">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br clear="none">>>>>><br clear="none">>>>><br clear="none">>>><br clear="none">>><br clear="none">>> -- <br clear="none">>> Bill Burke<br clear="none">>> JBoss, a division of Red Hat<br clear="none">>> <a href="http://bill.burkecentral.com/" target="_blank" shape="rect">http://bill.burkecentral.com</a><br clear="none">>> _______________________________________________<br clear="none">>> keycloak-user mailing list<br clear="none">>> <a href="mailto:keycloak-user@lists.jboss.org" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none">>> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank" shape="rect">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br clear="none">> <br clear="none"><br clear="none">-- <br clear="none">Bill Burke<br clear="none">JBoss, a division of Red Hat<br clear="none"><a href="http://bill.burkecentral.com/" target="_blank" shape="rect">http://bill.burkecentral.com</a><br clear="none">_______________________________________________<br clear="none">keycloak-user mailing list<br clear="none"><a href="mailto:keycloak-user@lists.jboss.org" shape="rect" ymailto="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br clear="none"><a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank" shape="rect">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div><br><br></div> </div> </div> </div></body></html>