Enrique Perez a écrit : > Hi all, > > The task is created: > > http://jira.nuxeo.org/browse/NXP-2398 > > By the way, I noticed a bug: > > I use an URLConnection object to retrieve the previews. I need to > authenticate this URLConnection, but I don't know how to get the > credentials that is logged. I try with this piece of code: > > NuxeoPrincipal > nuxeoPrincipal=(NuxeoPrincipal)documentManager.getPrincipal(); > > String user; > String pass; > user=nuxeoPrincipal.getName(); > pass=nuxeoPrincipal.getPassword(); > > The username is retrieved fine, but the password returns null. So, at > the moment I use the following piece of code: > > user="Administrator"; > pass="Administrator"; > > Does anybody know how to get the password of an user? You can not. User password may not ne know at all by Nuxeo : - because login can be done against a LDAP server that does not give access to clean password - because login can be done against a SSO Server
What do you need this information for ? > > Regards. > > Stefane Fermigier escribió: >> Hi, >> >> Just create a task in the Jira and attach the source. >> >> We will create a new Mercurial repo for community add-ons and put it >> there later. >> >> S. >> >> On May 15, 2008, at 9:43 AM, Enrique Perez wrote: >> >>> Tiry escribió: >>>> Enrique Perez a écrit : >>>>> I've developped a new plugin that creates a tab with the preview of >>>>> the documents. >>>>> >>>>> This plugin retrieves the documents using a restlet call and create a >>>>> thumbnail (if the document is an image) or translate it to HTML (if >>>>> it's not an image). >>>>> >>>>> The translation to HTML is done using an external command (you can >>>>> configure the command to use for each type using an extension point). >>>>> >>>>> If you are interested I can submit it. >>>>> >>>> Sure :) >>>>> Regards. >>>>> >>>>> >>>> >>>> >>> Where can I submit the plugin? >>> >>> Regards. >>> >>> -- >>> Enrique Pérez Olivares. >>> Dpto I+D. >>> Yerbabuena Software. >>> [EMAIL PROTECTED] >>> http://www.yerbabuena.es >>> Tlf/Fax: 902 995 246 >>> >>> _______________________________________________ >>> ECM mailing list >>> [email protected] >>> http://lists.nuxeo.com/mailman/listinfo/ecm >>> >> >> -- >> Stefane Fermigier, CEO, Nuxeo >> Open Source, Java EE based, Enterprise Content Management (ECM) >> New! Nuxeo TV on http://nuxeo.blip.tv/ >> Web: http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87 >> >> >> > > _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
