Auth v3

revised version