Unable to retrieve liferay roles in Orbeon proxy-portlet

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to retrieve liferay roles in Orbeon proxy-portlet

r.pecori
Hi,

I am trying to get Liferay user email and roles in a control using the functions

xxf:get-request-header('orbeon-liferay-user-email')

and

xxf:get-request-header('orbeon-liferay-user-roles')

I have set in properties-local.xml these properties:

 
    <property as="xs:string"  name="oxf.fr.authentication.header.username"
              value="Orbeon-Liferay-User-Email"/>

   
    <property as="xs:string" name="oxf.fr.authentication.header.roles"
              value="Orbeon-Liferay-User-Roles"/>

but it does not work. Nothing is returned.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to retrieve liferay roles in Orbeon proxy-portlet

Sefer
Hi,

I have the same problem. Did you find a solution ?

Me in my side, I created a simple form with one input filed and I want to get the Liferay user name in this orbeon field.

First: I completed properties-local.xml using http://wiki.orbeon.com/forms/doc/developer-guide/admin/deployment-portlet .

properties-local.xml :
     <!-- This is the property for Orbeon Forms 4.0 -->
    <property as="xs:anyURI"  name="oxf.fr.persistence.exist.exist-uri"
              value="http://orbeonserver:8080/orbeon/exist/rest/db/orbeon/fr"/>

   <!-- Configure authentication properties through headers -->
    <property as="xs:string" name="oxf.fr.authentication.method"
              value="header"/>

    <!-- If you want the Liferay user email used for Form Runner authentication -->
    <property as="xs:string"  name="oxf.fr.authentication.header.username"
              value="Orbeon-Liferay-User-Email"/>

    <!-- If you want Liferay roles used -->
    <property as="xs:string" name="oxf.fr.authentication.header.roles"
              value="Orbeon-Liferay-User-Roles"/>

    <!-- To propagate username/roles to the persistence layer, if using authentication -->
    <property as="xs:string"  name="oxf.xforms.forward-submission-headers"
              value="Orbeon-Username Orbeon-Roles"/>


After in my form, I used xxf:get-request-header() to get the Liferay user name :
<xf:bind id="userName-bind" name="userName" ref="userName"
                             xxf:default="xxf:get-request-header('orbeon-liferay-user-email')"/>


Finally to insert the form in Liferay, I used the orbeon proxy-portlet.war (no configuration in this side).


I see the form but field is empty. Nothing is returned. I missed a step ?

FYI, I used: liferay-portal-6.1.1-ce-ga2 and orbeon-4.0.1.201303152357-PE (free tiral license). Orbeon and Liferay are on 2 different server.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to retrieve liferay roles in Orbeon proxy-portlet

Erik Bruchez
Administrator
The issue is that the proxy portlet doesn't send any of that information to the remote Form Runner. I entered an RFE for this:

https://github.com/orbeon/orbeon-forms/issues/946

Is this issue still current for any of you? If so, we can see if we can target it for 4.2.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to retrieve liferay roles in Orbeon proxy-portlet

r.pecori
I now use Form Runner Portlet instead of Proxy Portlet, but it will be useful this information is available in both portlets
Reply | Threaded
Open this post in threaded view
|

Re: Unable to retrieve liferay roles in Orbeon proxy-portlet

Erik Bruchez
Administrator
Agreed!

-Erik