Hi there
I’m trying to create a Python node with an output port of type knext.PortType.CREDENTIAL
- similar to the existing Google Authenticator. This node authenticates with an OAuth service and passes the credentials to other nodes down the line. In order to avoid sending those in clear text, I tried to use a credential port.
However, I’m stuck at specifying the schema within the configure
method. I think the knext.CredentialPortObjectSpec
object [source] could be what I’m looking for. But the constructor requires a java_callback
parameter which I do not know how to handle.
How do I specify the schema within the configure
method and the returned data within the execute
method for a credential port?
Best
Lo
P.S. Maybe this is not possible with Python, but only with a Java node. It looks like nodes written in Java can use some features which are not (yet) accessible for Python nodes.
1 post - 1 participant