Passing authentication parameters

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

Passing authentication parameters

Vinod Sherikar

Say, I created a XBL component for Gender and I populate the metadata using a web service call from xbl component. Now to authenticate the service end point I need to pass some credentials to service.

Can we pass the credentials to XBL component at runtime so that it can use them to call service and load the metadata?

 

 

 

Thanks,

Vinod S

 

--
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: Passing authentication parameters

Erik Bruchez
Administrator
Vinod,

This will work if all your components use the same setting, you can directly read properties from within your XBL component using the `xxf:property()` function:

https://github.com/orbeon/orbeon-forms/wiki/XForms-~-XPath-Function-Library-~-Extension-Functions#xxfproperty

You then store a custom property in properties-local.xml.

-Erik