Add support for authenticating against astdb and one time authentication