mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-25 11:50:03 +08:00
* Initial plan * Fix BadUserAccessDenied when SecurityPolicy/SecurityMode not matching Modified MatchEndpoints method to throw appropriate exceptions: - BadSecurityPolicyRejected when requested policy is not supported - BadSecurityModeRejected when requested mode is not supported - Maintains backward compatibility when no specific security settings requested Added comprehensive tests to verify the fix. Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> * Improve code readability with extracted boolean variables Applied code review feedback to extract parameter validation checks into separate boolean variables for better readability. Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> * Add integration test for unsupported security policy Added ConnectWithUnsupportedSecurityPolicyAsync test that: - Uses ClientFixture to connect to test server - Requests a security policy not supported by server - Verifies BadSecurityPolicyRejected is thrown instead of BadUserAccessDenied - Tests run successfully on net8.0 and net9.0 targets Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> * Add policy that will never work * ignore faulty test * update --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> Co-authored-by: Roman Ettlinger <romanett98@gmail.com>