Hello xwiki developpers Imagine you had to powerful applications. First xwiki, then discourse engine for deliberative decision making. Lets call the latter 'dito'. Imagine how nice it would be, 1: if these two applications could use the same authentication, and if 2: signing into one aplication would sign you into the second, too. 3: registering a new account in dito would add a new user to xwiki with the appropriate rights (edit) without admin interaction (explicitly setting rights) needed @1: Done! Fortunately, as far as *authentication* is concerned, xwiki makes a geeks life easier, as it provides a XWikiAuthService interface. Which I implemented for my needs and which works fine. @2: Hm, solve 3 first @3: Stuck! Unfortunately, as far as *authorisation* is concerned, I did not yet get the point. My approach is to make an xml-rpc, that logs into the wiki (with a user that i added manually and that has admin rights) and calls the XWiki.createUser() method. In order to achieve that, i extended the ConfluenceRpcHandler and added a method createUserFromExternal Suddenly, I get an error in Xwiki, approx. line 2570(i.e. methods system.out.println("xwiki create user : !context.getUtil().match"+xwikiname);returns -4 :) try { if (!context .getUtil() .match( this.Param( "xwiki.validusername", "/^[a-zA-Z0-9_]+$/"), xwikiname)) { return -4; } } As i am calling from external, the context object (and the request, it is carrying) are not as complete as they are, when i register via the xwiki web page. My questions are: - is it a good idea to do xwiki user registration automatically and from external *that* way? do you know alternatives? - is there an implementation of the mehtod: /** * {@inheritDoc} * @see ConfluenceRpcInterface#addUser(String, java.util.Map, String) */ public void addUser(String token, Map user, String password) throws XWikiException { throw new XWikiException(XWikiException.MODULE_XWIKI_XMLRPC, XWikiException.ERROR_XWIKI_NOT_IMPLEMENTED, "Not implemented"); } ? - If you integrate xwiki into other environments or vice versa, what is the best practice to wire the two different registration and login processes of both, xwiki and some_app ? Of course, i searched the archives, but no solution for this so far... Any hints? Best regards Thomas K. -- ontopica Thomas Krämer Krämer&Okpue GbR Kurfürstenstr. 66 53115 Bonn Fon 0228 - 180 99 737 Fax 0228 - 242 78 60 Email [email protected]