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

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions