Basic Authentication during send( ) action

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

Basic Authentication during send( ) action

kushp
In integrating Orbeon in my system, I'm quite done this last step.
My service uses basic authentication to authenticate the calls to rest service. While loading the published Orbeon form, I've used an HTTP service call that uses basic authentication. This call is successful. After filling the form data, I'm using send( ) action with the call to one of my rest service. But the send service does not succeed. While calling the same rest service with POSTMAN software is successful, of course using basic authentication in the header. 

Thus the problem is narrowed to 'Putting basic authentication in send( ) action'. Is there a way to do so? If not, any other detours? I've gone through the cookie page https://doc.orbeon.com/configuration/properties/general.html#cookies-forwarding. But it says 'When a username for HTTP Basic authentication is specified, cookies are not forwarded.'. I guess putting authentication headers in the send header is the only way.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Basic Authentication during send( ) action

kushp
Answering my own question. I don't know if you guys believe in magic, but I do. Somehow on clicking the POST button after writing my question, the mouse's left button clicked twice while the home page scrolled down and I landed on the post that had Alessandro's answer regarding this.

The url in send( ) should be 'http://username:password@url....

My Orbeon POC is complete.
Orbeon is a great tool @Alessandro. Thanks!

On Thursday, February 15, 2018 at 7:38:33 PM UTC+5:30, [hidden email] wrote:
In integrating Orbeon in my system, I'm quite done this last step.
My service uses basic authentication to authenticate the calls to rest service. While loading the published Orbeon form, I've used an HTTP service call that uses basic authentication. This call is successful. After filling the form data, I'm using send( ) action with the call to one of my rest service. But the send service does not succeed. While calling the same rest service with POSTMAN software is successful, of course using basic authentication in the header. 

Thus the problem is narrowed to 'Putting basic authentication in send( ) action'. Is there a way to do so? If not, any other detours? I've gone through the cookie page <a href="https://doc.orbeon.com/configuration/properties/general.html#cookies-forwarding" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fproperties%2Fgeneral.html%23cookies-forwarding\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEwro2r4FYVxzXJxfVtsSvxPyFwXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fproperties%2Fgeneral.html%23cookies-forwarding\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEwro2r4FYVxzXJxfVtsSvxPyFwXA&#39;;return true;">https://doc.orbeon.com/configuration/properties/general.html#cookies-forwarding. But it says 'When a username for HTTP Basic authentication is specified, cookies are not forwarded.'. I guess putting authentication headers in the send header is the only way.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Basic Authentication during send( ) action

Alessandro  Vernet
Administrator
Excellent! And for those ending up here through a search, the other thread
you're most likely referring to is:

http://discuss.orbeon.com/Send-Authorization-Bearer-to-external-api-from-orbeon-td4663131.html

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet