Type of issue
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