hi,
as asked by Gianluca, here i am sending again my python
integration and the small howto what i have posted to
the open
discussion.
also please find the python agent attached.
regards
ferenc
==========================
hi,
quite a while ago i was looking for a solution so that
i could use josso with a python application, which was
trac for me. unfortunately i couldn't find anything
like that online so i made my own version of it.
because this was my very first python application i am
sure one could do it much better. so feel free to
improve it.
hope one find it useful.
cheers
ferenc
here is the howto:
Because of some reason josso's online wsdl file needed
to be altered so that wsdl2py was able to generate the
right code.
wget
http://jossoserver/josso/services/SSOIdentityManager?wsdl
Then exchange every type="tns2:string" to
type="xsd:string" in the wsdl file. There should be
like five of them.
Create the files and copy them next to trac:
wsdl2py -f wsdl2py SSOIdentityManager\?wsdl
cp SSOIdentityManagerService_services.py
/var/www/trac/cgi-bin
cp SSOIdentityManagerService_services_types.py
/var/www/trac/cgi-bin
There is only two features this class so far.
* Redirect()
* isUserInRole()
Redirect() simply redirects the page to the Josso's
login page. This, actually could be somewhere else too.
isUserInRole() returns 1 if the user is in session,
logged in josso and also has the trac assigned.
Returns 0 otherwise.
simple python josso agent