bdb_authentication for auth with device