Fix external authentication