Implement auth-autodetection