By: Won Kim user 22 Nov 2016 at 12:10 p.m. CST

6 Responses
Won Kim gravatar
I have a python library to install more specifically the xmlsec python library which I need to do signing saml AuthnRequest. I tried to install the library using "python setup.py install" and placed the install folder into the /opt/tomcat/conf/python folder. But it doesn't seem to work. I also restarted the server after I installed but it still does not find the modules. I was wondering how do I install the xmlsec python library for the custom script to get access to. Here is where I got the xmlsec lib. https://pypi.python.org/pypi/xmlsec

By Won Kim user 22 Nov 2016 at 12:12 p.m. CST

Won Kim gravatar
An alternative to using the python library I was wondering if I could customize the oxSaml java library and add in signing to the AuthRequest object. What is the proper way to update a jar file in the gluu server?

By Aliaksandr Samuseu staff 22 Nov 2016 at 12:37 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Won. `/opt/jython/Lib/` seems to be more likely the place to drop your additional libs into (I take it you need to use it in some custom jython scripts running inside Gluu, correct?). Please try to drop them there, restarting Tomcat again after that, and let us know whether it helped. Best regards, Alex.

By Michael Schwartz Account Admin 22 Nov 2016 at 1:02 p.m. CST

Michael Schwartz gravatar
Make sure this library doesn't have any dependencies on C programs. If so, we many need to use Java.

By Won Kim user 22 Nov 2016 at 3:31 p.m. CST

Won Kim gravatar
yeah it does have c dependencies. I am trying to do the java route now. I was thinking of writing a stand alone class that only does the signing part. Do I just drop the jar file into the /opt/tomcat/endorsed folder for it to be available to the jython script?

By Aliaksandr Samuseu staff 22 Nov 2016 at 3:36 p.m. CST

Aliaksandr Samuseu gravatar
Reassigned the ticket to developer to get answer for this.

By William Lowe user 28 Nov 2016 at 2:10 p.m. CST

William Lowe gravatar
Hi Won, The jar file needs to be dropped into `/var/gluu/webapps/oxauth/libs`. `/opt/tomcat/endorsed` has been changed to the above path. Thanks, Will