01/07/2022
I have developed OPC UA SERVER application using CSharp(C#) language. I want to know if the connection is reverse or forward in OPC UA Server.
My requirement is that the OPC UA server shall only accept ReverseHello session opening requests with “Anonymous User Identity Token” policy. I want to differentiate whether the current session forward connection or reverse connection in SessionManager_ImpersonateUser method.
This method is invoked when client tries to change user identity in UAExpert.
For forward connection, the following usertoken policy shall work
anonymous
username
certificate
For reverse connection the following user token policy shall work
anonymous
01/07/2022
Hi, Thanks for reply. I have tried in my OPC UA server application by following code.
var endpoints = Server.GetEndpoints().Select(e => e.EndpointUrl).Distinct()
but the end points displays only Baseline address(server related address) only..
the following method is invoked when client(UAExpert) tries to connect OPC UA Server. through session object not able to find current session is reverse or forward.
private void SessionManager_ImpersonateUser(Session session, ImpersonateEventArgs args)
Server config file:
Baseline address:
1 Guest(s)