Hi Henry and all,

On Feb 23, 2010, at 7:52 PM, Story Henry wrote:

> Hi,
> 
> I have built a little keygen application for Xwiki now. It is available here:
> 
>   http://github.com/bblfish/keygenapp
> 
> You can download it with 
> 
>  $ git clone [email protected]:bblfish/keygenapp.git
> 
> then you should be able to build it with 
> 
>  $ mvn clean package
>  $ mvn dependency:copy-dependencies 
> 
> You will then just need to copy two jar files over to 
> 
>  webapps/xwiki/WEB-INF/lib/
> 
> * target/xwiki-foafssl-component-0.2.jar
> * target/dependency/bcprov-jdk16-141.jar

If you can provide those as *released* binaries it would help (you mention 
version in your jar but this means that any change to the code and a rebuild 
will yield the same version when they won't be really of the same version, 
right?).

In the future if we want to make your code available easily you'll need to make 
these available in some remote maven repository. We could make them available 
in our own remote repo I guess although if you have yours it would be better.

> Because I am not yet sure how to get the XAR plugin to work, I have not 
> automated the build yet for that piece. Please let me know how I should fix 
> this. Essentially there are two files that need to be installed
> 
> $ ls -l1 src/main/resources/XWiki/*.xml
> src/main/resources/XWiki/foafssl_RSAPubKey.xml
> src/main/resources/XWiki/foafssl_create_cert.xml

Using the XAR plugin is very very easy. Just look at how it's done here:
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/

In term of naming best practices we don't use "_" in page names and pages start 
with an uppercase. So in your case that could be:
- XWiki.FoafSslRsaPubKey.xml
- XWiki.FoafSsslCreateCert.xml

Although I believe you could also use a space of FoafSsl and put the pages in 
it:
- FoafSsl.RsaPubKey.xml
- FoafSsl.CreateCert.xml

> the first one there is just a class,

Re class naming we usually prefix with Class, so that would be:
- FoafSssl.RsaPubKeyClass.xml

> the second one is a script that will allow you to get a certificate in one 
> click.
> 
> In order to then have that be visible to your homepage you need to replace 
> the content of the
> XWikiUserProfileSheet with the content of
> 
> src/main/resources/XWiki/XWikiUserProfileSheet.html

Hmm... We'll need to find a way to keep the existing profile sheet as it is 
(for users who don't want to install the FOAF/SSL extension) and at the same 
time be able to add your extension.

Guys, any idea?

For now and for demonstration purpose I guess it's ok to replace the profile 
sheet that is on incubator.

Guys, what do you think?

> 
> You will then be able to try to login to a few other services (there is a 
> link provided on the page). I will work next on allowing Xwiki to be logged 
> into too with foaf+ssl (as well as on fixing any bugs you let me know of)

Great!

Thanks
-Vincent

> 
>       Henry
> 
> 
> Social Web Architect
> http://bblfish.net/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to