Passing login credentials with xforms:load action

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

Passing login credentials with xforms:load action

Gerrit Boers
Hi,

Is it possible to pass username and password with an xforms:load like with the xforms:submission?

Something like this:
<xforms:load resource="......."    show="new" xxforms:username="{xxforms:get-session-attribute('username')}" xxforms:password="{xxforms:get-session-attribute('password')}"/>

Or is there another solution to this problem?

Kind regards,

Gerrit


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Passing login credentials with xforms:load action

Erik Bruchez
Administrator
Mmh, this will load a URL in the browser. So if credentials are
passed, they will be visible in the browser's URL bar. But I supposed
you could write:

<xforms:load
  resource="http://{xxforms:get-session-attribute('username')}:{xxforms:get-session-attribute('password')}@host:port/path"
  show="new"/>

But I would try to avoid doing something like this.

-Erik

On Tue, Oct 16, 2012 at 12:57 AM, Gerrit Boers <[hidden email]> wrote:

> Hi,
>
> Is it possible to pass username and password with an xforms:load like with
> the xforms:submission?
>
> Something like this:
> <xforms:load resource="......."    show="new"
> xxforms:username="{xxforms:get-session-attribute('username')}"
> xxforms:password="{xxforms:get-session-attribute('password')}"/>
>
> Or is there another solution to this problem?
>
> Kind regards,
>
> Gerrit
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Passing login credentials with xforms:load action

Gerrit Boers
Ah, I didn't realize that the credentials would become visible. I agree that this is not a good idea.

Thanks for the response, I now know that I'll have to come up with a different approach.

kind regards,

Gerrit

P.S. I absolutely love the xxforms:iterate extension. Keep up the good work!
On Oct 17, 2012, at 7:04 AM, Erik Bruchez wrote:

> Mmh, this will load a URL in the browser. So if credentials are
> passed, they will be visible in the browser's URL bar. But I supposed
> you could write:
>
> <xforms:load
>  resource="http://{xxforms:get-session-attribute('username')}:{xxforms:get-session-attribute('password')}@host:port/path"
>  show="new"/>
>
> But I would try to avoid doing something like this.
>
> -Erik
>
> On Tue, Oct 16, 2012 at 12:57 AM, Gerrit Boers <[hidden email]> wrote:
>> Hi,
>>
>> Is it possible to pass username and password with an xforms:load like with
>> the xforms:submission?
>>
>> Something like this:
>> <xforms:load resource="......."    show="new"
>> xxforms:username="{xxforms:get-session-attribute('username')}"
>> xxforms:password="{xxforms:get-session-attribute('password')}"/>
>>
>> Or is there another solution to this problem?
>>
>> Kind regards,
>>
>> Gerrit
>>
>>
>> --
>> 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


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Passing login credentials with xforms:load action

Erik Bruchez
Administrator
> P.S. I absolutely love the xxforms:iterate extension. Keep up the good work!

Thanks! It's going to be standard in XForms 2 :)

-Erik


--
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