Creating adapter-based authentication