Hi,<div>For Jira <a href="https://issues.jboss.org/browse/AEROGEAR-657">https://issues.jboss.org/browse/AEROGEAR-657</a> I've been playing and hacking a bit, for now that's the result :</div><div><br></div><div>(you can log in with admin priviliges with admin/admin) </div>
<div><a href="http://agcontrollerdemo-sblanc.rhcloud.com/aerogear-controller-demo/admin">http://agcontrollerdemo-sblanc.rhcloud.com/aerogear-controller-demo</a><br></div><div><br></div><div>This demo show the usage of 2 different types of roles :</div>
<div>- Simple user can just login/register.</div><div>- Admin can register other users and see a list of registerd users. </div><div><br></div><div>When diving into AG-Security, here are some remarks that we can discuss on this thread :</div>
<div>- The current API is very lean : login, logout, grant </div><div>- For the demo, I've added a new method getAuthenticatedUsers() but what about adding some others methods to be able to do some CRUD action :</div>
<div><br></div><div>* getUser</div><div>* deleteUser</div><div>* updateUser</div><div><br></div><div>I'm also missing a method to retrieve the role of a user, so just a simple : getRole</div><div><br></div><div>I've also another remark : when registering a new user, we put him by default in a group called "default user group", maybe we want to make it a bit more flexible by providing a group ? </div>
<div><br></div><div>Questions and remarks are welcome ! </div><div><br></div><div>Seb</div><div><br></div><div><br></div><div> </div><div><br></div>