Hi All,
I have been trying to accomplish this task of storing username in database by passing request parameter as: <include>/request/parameters/parameter[name='username']</include> <username><xsl:value-of select="$request/parameters/parameter[name='username']"/></username>) to crud.xpl but the values are not getting stored. I have went through most of the posts related to the same issue but have not found any satisfactory reply. Java Authentication sample, however, stores the username but using /request/remote-user not /request/headers/header. Can anyone help me on this. Thanks
Pasha
|
Administrator
|
Pasha,
In recent builds of Orbeon Forms, the header "Orbeon-Username" is passed to the persistence layer automatically. It contains the current user name, based on the user principal obtained from the servlet API, or based on incoming headers (if oxf.fr.authentication.method is set to the value "header"). See also: http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/access-control -Erik On Wed, Sep 7, 2011 at 7:18 AM, Shehzad Pasha <[hidden email]> wrote: > Hi All, > > I have been trying to accomplish this task of storing username in database > by passing request parameter as: > > <include>/request/parameters/parameter[name='username']</include> > > <username><xsl:value-of > select="$request/parameters/parameter[name='username']"/></username>) > > to crud.xpl but the values are not getting stored. > > I have went through most of the posts related to the same issue but have not > found any satisfactory reply. Java Authentication sample, however, stores > the username but using /request/remote-user not /request/headers/header. > > Can anyone help me on this. > > Thanks > > ----- > Pasha > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Storing-username-in-database-by-passing-request-parameter-tp3796215p3796215.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik,
I have been trying to accomplish this using Orbeon 3.9 but the results are the same, ORBEON-USERNAME does not seem to get stored in the database, using BASIC HTTP AUTHENTICATION or FORM BASED AUTHENTICATION either. Thanks
Pasha
|
Erik,
I am using this build Orbeon Forms 3.9.0.201105152046 CE Regards
Pasha
|
Administrator
|
Pasha,
Support for Orbeon-Username is not present in that build. You will have to use a nightly build. -Erik On Thu, Sep 8, 2011 at 6:07 AM, Shehzad Pasha <[hidden email]> wrote: > Erik, > > I am using this build Orbeon Forms 3.9.0.201105152046 CE > > Regards > > ----- > Pasha > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Storing-username-in-database-by-passing-request-parameter-tp3796215p3798753.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |