Implementation of getAuth with best_prefix_len for remotebackend