add socket authorization