implemented Sorcery authentication