Hi Tim,

thank you for the pull request, I merged it and closed the issue in jira.

Philipp

> On 14. Jan 2021, at 15:28, udeho <[email protected]> wrote:
> 
> Hi all,
> 
> I added the option to create an authenticated connection using the OPC-UA 
> adapter and tested it with the milo demo server.
> The changes are part of PR-35 
> <https://github.com/apache/incubator-streampipes-extensions/pull/35> in 
> StreamPipes Extensions.
> 
> @Adrian, please let me know if it worked for you too or if you still face 
> issues once the changes are included in the build of the 0.68-SNAPSHOT 
> version.
> 
> Best,
> Tim
> 
> On Jan. 7 2021, at 1:54 pm, udeho <[email protected]> wrote:
> Hi,
> 
> To that end, I just created 
> https://issues.apache.org/jira/browse/STREAMPIPES-277.
> 
> Tim
> On Jan. 6 2021, at 3:45 pm, Patrick Wiener <[email protected]> wrote:
> Hi,
> 
> cool to hear - Is there already a Jira Issue to track it?
> 
> Patrick
> 
> Am 06.01.2021 um 15:03 schrieb udeho <[email protected] 
> <mailto:[email protected]>>:
> 
> Hi all,
> 
> indeed, the OPC-UA adapter currently does not support establishing a 
> connection using credentials.
> I have already done some experiments to add this feature to the OPC-UA 
> adapter and think that this feature should be available in the near future.
> 
> Best regards,
> Tim
> On Jan. 6 2021, at 1:33 pm, Patrick Wiener <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi Adrian,
> 
> AFAIK this is not yet implemented. This is the part in the code where we 
> define the opc ua server url in the constructor of a helper [1]. These 
> information are injected by the adapter class [2].
> 
> I guess similarly to our MQTT protocol implementation we should add an 
> alternative field as part of the model declaration in order to extract 
> username/password if provided by the user (see declareModel method) [3].
> 
> Maybe @Tim or @Philipp know more about some of the details since they worked 
> on the OPCUA adapter.
> 
> Patrick
> 
> [1] 
> https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUa.java
>  
> <https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUa.java>
> [2] 
> https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUaAdapter.java
>  
> <https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/opcua/OpcUaAdapter.java>
> [3] 
> https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/protocol/stream/MqttProtocol.java
>  
> <https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/protocol/stream/MqttProtocol.java>
> On 2021/01/05 10:43:47, Adrian Buerger <[email protected] 
> <mailto:[email protected]>> wrote:
> > Hello everyone,
> >
> >
> > can the OPC UA adapter (in Streampipes 0.67.0) be used to read values from 
> > an OPC UA server that requires user credentials to log in? If I try to 
> > specify the OPC server URL in the sense of
> >
> >
> > opc.tcp://username:password@server:port 
> > <opc.tcp://username:password@server:port>
> >
> >
> > the following error is thrown:
> >
> >
> > org.apache.streampipes.connect.adapter.exception.AdapterException: Could 
> > not guess schema for opc node! UaException: status=Bad_InternalError, 
> > message=unsupported protocol: null
> >
> >
> > In the UI, I cannot see an alternative way to specify user credentials. Is 
> > it (yet) possible to use the OPC UA adapter in this setting?
> >
> >
> > Thank you very much for your help!
> >
> >
> > Best regards,
> >
> >
> > Adrian
> >
> >

Reply via email to