You can translate the question and the replies:

Integrate user credentials in UDF

I need to connect to an external system in an UDF. Is there a way to get the credentials of user querying UDF so that the same can be user to connect to an external system?
user
17-11-2016 07:24:21 -0500
code

1 Answer

Hi, From my experience working with Custom Functions, you can access information like user, roles or database, using this method: ``` CustomElementsUtil.getQueryContext(); ``` That method returns a bean QueryContext with context information, however, the password is not included (I guess for security reasons). It comes to my mind that you could create a datasource for querying that external system using the option “Pass through session credentials” and then query that data source from the custom function. Hope this helps!
Denodo Team
18-11-2016 07:32:47 -0500
code
You must sign in to add an answer. If you do not have an account, you can register here