OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.9k stars 926 forks source link

The PolicyId that has been used to activate the session is not used for reconnect ("reactivatesession") #2525

Closed KircMax closed 4 months ago

KircMax commented 4 months ago

Type of issue

Current Behavior

When using a userIdentity with a specific PolicyId for the connect: image The PolicyId will not be re-used for the reconnect: image But the OPC Spec. says that the Same PolicyId must be used to re-authenticate that user. image https://reference.opcfoundation.org/Core/Part4/v105/docs/5.6.3

Expected Behavior

the same usertokenpolicy is used for the reconnect that has been used for the connect

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response

mregen commented 4 months ago

Thanks for catching this, I think it is rather a bug.

KircMax commented 4 months ago

Very welcome! Yeah, right, current behaviour does not fit to the OPC spec. -> relabeled.