server auth and client impelements same interface

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>