Skip to content

Client get BadUserAccessDenied when SecurityPolicy not matching #3269

@Siyuan-Xu-Wapice

Description

@Siyuan-Xu-Wapice

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

When connecting a client to remote server where the server doesn't support the client's configurated SecurityPolicy and SecurityMode. The client's isesson.Create() throw the StatusCodes.BadUserAccessDenied instead of BadSecurityPolicyRejected, or BadSecurityModeRejected.

BTW, BadUserAccessDenied is used for authentication (username password error), instead throw BadIdentityTokenRejected.

Expected Behavior

More accurate StatusCodes such as BadSecurityPolicyRejected, or BadSecurityModeRejected.

Steps To Reproduce

No response

Environment

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

Anything else?

No response

Metadata

Metadata

Labels

bugA bug was identified and should be fixed.complianceAn issue was found which is not compliant with the OPC UA specification.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions