socket authentication