[en] Encryption when authentication doesn't matter (solved)

Topics: Technical Support
Nov 28 at 7:08 AM
If I wanted to have a client and server communicate through an encrypted channel (the Zyan components are created with the encryption flag set to true), but didn't care about authentication, would it be enough to use the following line of code in the Authenticate method to simply force a successful authentication?
return new AuthResponseMessage() { Success = true };
Is there a need to return anything else in that object?
Coordinator
Nov 28 at 7:08 PM
Hello Mark,

yes, you can return Success = true or use the built-in NullAuthenticationProvider class.
Or, just pass null instead of the authentication provider instance, it's all the same.

Regards, Alex
Marked as answer by yallie on 11/28/2016 at 11:41 AM