OpenSAML dependency on Velocity breaks application
Tom van den Berge
tom.vandenberge at gmail.com
Fri Apr 27 09:05:39 BST 2012
Hi,
I'm using the OpenSAML library to use single-sign-on in my web application.
I noticed that OpenSAML has a dependency on Apache Velocity, and is
initializing it when calling DefaultBootstrap.bootstrap().
The problem is that my web application also uses Velocity, and that
Velocity is initialized in a static way; that is, it can be initialized
only once per VM. The result is that OpenSAML "hijacks" Velocity, and the
initialization performed by my web application is ignored, which
effectively breaks my application! In other words, it looks like OpenSAML
can't be used in applications that use Velocity.
I way quite surprised to learn that OpenSAML is using Velocity; for the
purpose I'm using OpenSAML (generating AuthRequest and verifying
Assertions), I can't really think of a reason to use Velocity. Maybe it is
used by a specific part of the library that I don't use? Then, it would be
highly recommended to make the dependency on Velocity optional. I don't
think that is possible now?
Is there a way to use or configure OpenSAML in such a way that it doesn't
conflict with my own Velocity configuration?
Many thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20120427/5eecf70f/attachment.html
More information about the dev
mailing list