<div>
Hi guys, which line should I look? From my perspective this line <a href="https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L71">https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L71</a> could be refactored to <a href="https://github.com/picketlink/picketlink-idm-restored/blob/6e63bc583fa2fab5976cac7449c39be447b03536/impl/src/test/java/org/picketlink/test/idm/internal/jpa/JPAUserTestCase.java#L94">https://github.com/picketlink/picketlink-idm-restored/blob/6e63bc583fa2fab5976cac7449c39be447b03536/impl/src/test/java/org/picketlink/test/idm/internal/jpa/JPAUserTestCase.java#L94</a></div><div><br></div><div>We're able to implement our own User entity, might be interesting to add getPassword/setPassword methods, in this way this line <a href="https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L121">https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L121</a> won't be needed. Just doing would be enough:</div><div><br></div><div>public class MyCustomUser implements User {</div><div>….</div><div>}</div><div><br></div><div>myCustomUser.setPassword("…"); //think about the registration process, we don't need DTOs just to pass passwords between entities.</div><div><br></div><div>im.createUser(myCustomUser);</div><div><br></div><div><br></div>
<div><div>About this line <a href="https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L138">https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java#L138</a> I'll refactor it and send a PR.</div><div><br></div><div>Currently we don't have groups on AeroGear, so our method is something like:</div><div><br></div><div>im.grantRole(adminRole, user, null); </div><div><br></div><div>I'll refactor it to allow users without a group. Wdyt?</div><div><br></div><div><br></div><div><div>-- </div><div>"The measure of a man is what he does with power" - Plato</div><div>-</div><div>@abstractj</div><div>-</div><div>Volenti Nihil Difficile</div></div></div>
<p style="color: #A0A0A8;">On Monday, October 8, 2012 at 1:30 PM, Anil Saldhana wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>I want to offer continued discussion on the JPA implementation in the </div><div>IDM project.</div><div><br></div><div>The work that Pedro did is restored here in the following workspace:</div><div><a href="https://github.com/picketlink/picketlink-idm-restored">https://github.com/picketlink/picketlink-idm-restored</a></div><div><br></div><div>A testcase that is useful for JPA implementation in IDM is: </div><div><a href="https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java">https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultJPAIdentityManagerTestCase.java</a></div><div><br></div><div>It is the exact mirror of the LDAP implementation: </div><div><a href="https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultLDAPIdentityManagerTestCase.java">https://github.com/picketlink/picketlink-idm-restored/blob/master/impl/src/test/java/org/picketlink/test/idm/internal/mgr/DefaultLDAPIdentityManagerTestCase.java</a></div><div><br></div><div>These two implementations have very minimal user configuration.</div><div><br></div><div>The challenge is when users bring in complex database schemas and LDAP </div><div>DITs into operation. But the goal of balancing complexity with </div><div>usability is a tough one.</div><div><br></div><div>On 09/06/2012 10:13 AM, Anil Saldhana wrote:</div><blockquote type="cite"><div><div>Similar challenges exist for LDAP bindings also, since user LDAP DITs</div><div>may be different. But we have to balance complexity with usability. :)</div><div><br></div><div>On 09/06/2012 07:37 AM, Pedro Igor Silva wrote:</div><blockquote type="cite"><div><div>Ok. I'll take a look how he took care of that.</div><div><br></div><div>Regards.</div><div>Pedro Igor</div><div><br></div><div>----- Original Message -----</div><div>From: "Anil Saldhana" <<a href="mailto:Anil.Saldhana@redhat.com">Anil.Saldhana@redhat.com</a>></div><div>To: <a href="mailto:security-dev@lists.jboss.org">security-dev@lists.jboss.org</a></div><div>Sent: Wednesday, September 5, 2012 6:52:35 PM</div><div>Subject: [security-dev] PicketLink IDM JPA Identity Store</div><div><br></div><div>Pedro,</div><div> Shane just referred me to the following:</div><div><br></div><div><a href="https://github.com/seam/security/blob/develop/impl/src/main/java/org/jboss/seam/security/management/picketlink/JpaIdentityStore.java">https://github.com/seam/security/blob/develop/impl/src/main/java/org/jboss/seam/security/management/picketlink/JpaIdentityStore.java</a></div><div><br></div><div>Can you adapt your work to incorporate all facets of this Seam work?</div><div>Shane says users have varying db schema structures and the JPA</div><div>implementation in seam3 took care of the nuances.</div><div><br></div><div>Regards,</div><div>Anil</div></div></blockquote></div></blockquote><div>_______________________________________________</div><div>security-dev mailing list</div><div><a href="mailto:security-dev@lists.jboss.org">security-dev@lists.jboss.org</a></div><div><a href="https://lists.jboss.org/mailman/listinfo/security-dev">https://lists.jboss.org/mailman/listinfo/security-dev</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>