[EMAIL PROTECTED] escribió: > Hi Enrique, > > You don't need to to do that (Authentication) in order to achieve what you > want. > > In your code, from a Seam component you connect to a Seam aware restlet > via http. > This is the reason for your authentication problem. > > There are at least 2 solutions : > > 1 : you change your design so that the html preview is always fetched from > the client browser (ie: as you do for images). > This could be done : > - by using a IFRAME > - by using Ajax to directly insert HTML content into tab's body. > > 2 : from your Seam action bean, you don't need to use http to call the > restlet. Just call it as a seam component, you only need to provide it a > dedicated public method to send you the blob. >
Thanks, I'll take it a look. > NB : by the way, if for some other use cases, if you really need to access > to nuxeo from http and propagate user identity you can use the portal-sso > addon and the nuxeo-http-client. > > NB2 : why did't you use standard Nuxeo transformation engine ? > I didn't know that Nuxeo provides a transformation engine. Where can I find it? Regards. > See : http://jira.nuxeo.org/browse/NXP-2398 > > >>>> 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"; >>>> >>>> > > > > -- 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
